Skip to content

Commit d93fe0c

Browse files
committed
always use ASCII for IJulia
until a bugfix is out.
1 parent 031c1ea commit d93fe0c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/plot.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ function textrecurrenceplot(io::IO, R::ARM; minh = 25, maxh = 0.5, ascii = nothi
6161
asciidef = (border = :ascii, canvas = DotCanvas)
6262
elseif ascii == false
6363
asciidef = (border = :solid, canvas = BrailleCanvas)
64-
#default:
65-
elseif ascii == nothing
66-
# TODO: always use ascii on Jupyter
67-
if (isdefined(Main, :Juno) && Main.Juno.isactive()) || !Sys.iswindows()
64+
elseif ascii == nothing # default handling
65+
if isdefined(Main, :IJulia) && Main.IJulia.inited
66+
# Always use ASCII in IJulia until this issue is fixed:
67+
# https://github.com/jupyter/notebook/issues/4354
68+
asciidef = (border = :ascii, canvas = DotCanvas)
69+
elseif (isdefined(Main, :Juno) && Main.Juno.isactive()) || !Sys.iswindows()
6870
asciidef = (border = :solid, canvas = BrailleCanvas)
6971
else
7072
asciidef = (border = :ascii, canvas = DotCanvas)

0 commit comments

Comments
 (0)