You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I open a Jupyter notebook on VS Code, I find Base.isinteractive() outputs false when Julia release channel is selected. See on the right in the attached image below.
However, when I select kernal Julia 10.3 which comes from IJulia.jl, Base.isinteractive() outputs true (on the left side in the attached image)
The difference matters when we write code using PythonPlot.jl.
fig, axis = plt.subplots()
data =rand(513, 513)
c = axis.pcolormesh(data, cmap="RdBu_r", vmin=-1, vmax=1)
fig.colorbar(c, ax=axis)
# We need to convert fig::Py to Figure(fig)::Figure for better performance when displaying the resultdisplay(Figure(fig))
The output of the code above depends on the value of Base.isinteractive(). If this is true, we get a dupulicated figure.)
I'm not sure where to fix and start debugging, but Base.isinteractive() should be true since IJulia.jl does something so that Base.isinteractive() is true.
The text was updated successfully, but these errors were encountered:
When I open a Jupyter notebook on VS Code, I find
Base.isinteractive()
outputsfalse
whenJulia release channel
is selected. See on the right in the attached image below.However, when I select kernal
Julia 10.3
which comes from IJulia.jl,Base.isinteractive()
outputstrue
(on the left side in the attached image)The difference matters when we write code using PythonPlot.jl.
The output of the code above depends on the value of
Base.isinteractive()
. If this istrue
, we get a dupulicated figure.)I'm not sure where to fix and start debugging, but
Base.isinteractive()
should betrue
since IJulia.jl does something so thatBase.isinteractive()
istrue
.The text was updated successfully, but these errors were encountered: