Closed dhoegh closed 9 years ago
humm, I haven't tried IJulia for some time. is it working ok from the terminal?
Yes it works in the terminal.
Ok, thanks for the feedback, I'll try and fix it when I have a chance.
If you want to have a look at fixing it yourself, I would have a look at the writemime function for HTML and renderplot, is it correctly setting isijulia=true
in renderplot
?
Turns out I had forgotten myself how to use IJulia, you just need setupnotebook()
.
This should work fine:
using Bokeh
setupnotebook()
x = linspace(0, 2pi)
y = sin(x)
plot(x, y)
Let me know if there's still a problem.
I'll leave this open as I need to document how to use Bokeh.jl with IJulia.
It seems wierd to require the user to do setupnotebook()
when it can be detected, if it runs in a notebook. See https://github.com/stevengj/PyPlot.jl/blob/master/src/PyPlot.jl#L159
better?
Yes, first time the plot did not show up before I saved, closed and then reopened the notebook and when I then executed the code the kernel died. But after a restart I can't seem to reproduce it.
I've had the same problem in the past, I asked about it somewhere (can't remember where) and no one seemed to understand.
If it persists I guess it's a problem the ipython people might be able to help with.
when it can be detected, if it runs in a notebook.
I don't know the IJulia internals, but I guess IJulia is defined at the kernel level, I mean, it is defined with a terminal, with a qt-based terminal, with a notebook... at the end, technically, is not possible to know if you are in a notebook... and that's because of the model frontend - kernel embedded in the IPython architecture... but I repeat, maybe I am missing something about IJulia which resolves this no "knowledge" between the parts of the system... at the end just thinking loud... jeje
I just added and tried Bokeh, if I run the following in IJulia i get an error
the output in the js console is: