damianavila / RISE

RISE: "Live" Reveal.js Jupyter/IPython Slideshow Extension
Other
3.69k stars 416 forks source link

RISe and IJulia #424

Open kakila opened 6 years ago

kakila commented 6 years ago

Hi,

I want to test your extension using IJulia. I followed the install instructions when using Julia and everything seems to be right, no error or warnings.

However when I run the notebook: using IJulia; notebook() I do not see the RISE buttons. The JS console does show some errors/warnings

Use of Mutation Events is deprecated. Use MutationObserver instead. jquery.min.js:3
actions jupyter-notebook:find-and-replace does not exist, still binding it in case it will be defined later... menubar.js:304
accessing "actions" on the global IPython/Jupyter is not recommended. Pass it to your objects contructors at creation time main.js:208
Loading failed for the <script> with source “http://localhost:8888/nbextensions/widgets/notebook/js/extension.js?v=20180906115439”. ParadoxGalore.ipynb:1
Widgets are not available.  Please install widgetsnbextension or ipywidgets 4.0 main.js:230
Session: kernel_created (e7dc5109-c434-4ee1-985e-5255ed699b84) session.js:54
Starting WebSockets: ws://localhost:8888/api/kernels/761f9ffc-3bed-4851-8487-7375473f13eb kernel.js:459
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at about:blank. (Reason: CORS request not http).
Kernel: kernel_connected (761f9ffc-3bed-4851-8487-7375473f13eb) kernel.js:103
Kernel: kernel_ready (761f9ffc-3bed-4851-8487-7375473f13eb) kernel.js:103

I am using jupyter server 5.2.2 any suggestions?

kakila commented 6 years ago

Hi,

I suspected it was an enviroment issue, maybe IJulia was using my systems jupyter instead of Conda's. so I rebuilt IJulia with an empty ENV["Jupyter"]="" and now the JS console doens't fail with widgets aynmore, and seems to be loading rise, but still functionality is not there.

JS console output:

Use of Mutation Events is deprecated. Use MutationObserver instead. jquery.min.js:2
actions jupyter-notebook:find-and-replace does not exist, still binding it in case it will be defined later... menubar.js:277
accessing "actions" on the global IPython/Jupyter is not recommended. Pass it to your objects contructors at creation time main.js:208
Loaded moment locale en bidi.js:19
load_extensions 
Arguments { 0: "jupyter-js-widgets/extension", 1: "rise/main", … }
utils.js:60
Session: kernel_created (4d835af0-296f-4a54-9520-30ce10066b50) session.js:54
Starting WebSockets: ws://localhost:8888/api/kernels/fa00228c-f442-4d73-80d4-5a09839b8fe5 kernel.js:459
Loading extension: rise/main utils.js:37
Loading extension: jupyter-js-widgets/extension utils.js:37
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at about:blank. (Reason: CORS request not http).
Kernel: kernel_connected (fa00228c-f442-4d73-80d4-5a09839b8fe5) kernel.js:103
Kernel: kernel_ready (fa00228c-f442-4d73-80d4-5a09839b8fe5) kernel.js:103
kakila commented 6 years ago

Ok, restarting Julia fixed the issue. RISE is now working (now need to set it up properly). Thanks