damianavila / RISE

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

RISE fragments not displaying properly #544

Open johnmichl opened 4 years ago

johnmichl commented 4 years ago

I've been using RISE for about a year to teach Python online. In the last month or so, I noticed that fragments are no longer displaying properly. They might pop on the screen quickly, then disappear quickly. Here's an example of three cells.

SLIDE1 FRAG1 FRAG2 SLIDE2

When viewing as slides and looking at SLIDE1

This happens with my notebooks that have worked fine in the past as well as new notebooks I'm getting from others that have SLIDE and FRAGMENT markers already in them. I've uninstalled and reinstalled RISE using PIP in Mac Catalina terminal. Only significant change in the past month is that I installed Anaconda though I typically launch Jupyter Notebooks directly from the terminal.

damianavila commented 4 years ago

@johnmichl some request for you:

Finally, could you please share the failing notebook or a representative example with us?

Thanks!

johnmichl commented 4 years ago

Rise Version ?? how do I check, I did reinstall recently to try and fix issue

Browser Safari 13.1

Notebook Version — 6.0.3

Installed via PIP

Not sure about browser console messages. Not sure what I’d look for or where. (beginner here)

Note: I tried in Chrome and DO NOT have the problem. So, I’ll run these from there for now though I would like to fix the problem with Safari.

Here’s what passed through the terminal when I just created a new notebook in Safari, then ran the slide show in Safari, then in Chrome.

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050. (base) Johns-iMac:~ john$ jupyter notebook [I 09:51:26.512 NotebookApp] The port 8888 is already in use, trying another port. [I 09:51:26.581 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1 [I 09:51:26.845 NotebookApp] JupyterLab extension loaded from /Users/john/anaconda3/lib/python3.7/site-packages/jupyterlab [I 09:51:26.845 NotebookApp] JupyterLab application directory is /Users/john/anaconda3/share/jupyter/lab [I 09:51:26.848 NotebookApp] Serving notebooks from local directory: /Users/john [I 09:51:26.848 NotebookApp] The Jupyter Notebook is running at: [I 09:51:26.848 NotebookApp] http://localhost:8889/?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a [I 09:51:26.849 NotebookApp] or http://127.0.0.1:8889/?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a [I 09:51:26.849 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 09:51:26.854 NotebookApp]

To access the notebook, open this file in a browser:
    file:///Users/john/Library/Jupyter/runtime/nbserver-46928-open.html
Or copy and paste one of these URLs:
    http://localhost:8889/?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a
 or http://127.0.0.1:8889/?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a

[I 09:51:55.433 NotebookApp] Creating new notebook in [I 09:51:56.464 NotebookApp] Kernel started: 4be048c1-1eae-4d28-9f14-8f1831468a71 [W 09:51:56.550 NotebookApp] 404 GET /nbextensions/zenmode/main.js?v=20200415095125 (::1) 9.57ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [I 09:53:56.419 NotebookApp] Saving file at /Untitled1.ipynb [I 09:55:08.046 NotebookApp] Saving file at /Untitled1.ipynb [W 09:55:08.084 NotebookApp] 404 GET /nbextensions/rise/reveal.js/css/theme/.css?v=20200415095125 (::1) 2.04ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [W 09:55:08.104 NotebookApp] 404 GET /notebooks/rise.css (::1): No such file or directory: rise.css [W 09:55:08.105 NotebookApp] 404 GET /notebooks/rise.css (::1) 18.93ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [W 09:55:08.105 NotebookApp] 404 GET /notebooks/Untitled1.css (::1): No such file or directory: Untitled1.css [W 09:55:08.106 NotebookApp] 404 GET /notebooks/Untitled1.css (::1) 19.63ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [I 09:55:59.423 NotebookApp] Saving file at /Untitled1.ipynb [W 09:57:33.595 NotebookApp] 404 GET /nbextensions/rise/reveal.js/css/theme/.css?v=20200415095125 (::1) 4.02ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [W 09:57:33.597 NotebookApp] 404 GET /notebooks/rise.css (::1): No such file or directory: rise.css [W 09:57:33.598 NotebookApp] 404 GET /notebooks/rise.css (::1) 1.76ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [W 09:57:33.598 NotebookApp] 404 GET /notebooks/Untitled1.css (::1): No such file or directory: Untitled1.css [W 09:57:33.599 NotebookApp] 404 GET /notebooks/Untitled1.css (::1) 2.10ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [I 09:57:59.419 NotebookApp] Saving file at /Untitled1.ipynb [I 09:59:11.083 NotebookApp] Saving file at /Untitled1.ipynb [I 09:59:14.911 NotebookApp] Starting buffering for 4be048c1-1eae-4d28-9f14-8f1831468a71:98d018ab9aa943a08d72a7670069e0be [I 10:00:30.291 NotebookApp] 302 GET /tree (::1) 0.69ms [I 10:04:51.998 NotebookApp] 302 GET /?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a (::1) 0.45ms [W 10:04:56.554 NotebookApp] 404 GET /nbextensions/zenmode/main.js?v=20200415095125 (::1) 39.17ms referer=http://localhost:8889/notebooks/Untitled1.ipynb [W 10:04:56.732 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20200415095125 (::1) 1.69ms referer=http://localhost:8889/notebooks/Untitled1.ipynb [W 10:05:03.787 NotebookApp] 404 GET /nbextensions/rise/reveal.js/css/theme/.css?v=20200415095125 (::1) 1.55ms referer=http://localhost:8889/notebooks/Untitled1.ipynb [W 10:05:03.810 NotebookApp] 404 GET /notebooks/rise.css (::1): No such file or directory: rise.css [W 10:05:03.810 NotebookApp] 404 GET /notebooks/rise.css (::1) 1.98ms referer=http://localhost:8889/notebooks/Untitled1.ipynb [W 10:05:03.811 NotebookApp] 404 GET /notebooks/Untitled1.css (::1): No such file or directory: Untitled1.css [W 10:05:03.812 NotebookApp] 404 GET /notebooks/Untitled1.css (::1) 2.66ms referer=http://localhost:8889/notebooks/Untitled1.ipynb [I 10:05:12.980 NotebookApp] Starting buffering for 4be048c1-1eae-4d28-9f14-8f1831468a71:225b5349fe8e4d2d9e9663462a37b986

On Apr 14, 2020, at 6:54 PM, Damian Avila notifications@github.com wrote:

@johnmichl https://github.com/johnmichl some request for you:

RISE version Browser version Notebook version You installed by pip, right? Any messages in the browser console? Finally, could you please share the failing notebook or a representative example with us?

Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/damianavila/RISE/issues/544#issuecomment-613737864, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALX66OXNKLWCB3DCBYSXVTLRMTZUVANCNFSM4MHWVJXQ.

johnmichl commented 4 years ago

Meant to share this video - https://www.dropbox.com/s/lr9nz70o4hme24x/RISE-fragmentissue.mp4?dl=0 https://www.dropbox.com/s/lr9nz70o4hme24x/RISE-fragmentissue.mp4?dl=0

On Apr 15, 2020, at 10:14 AM, John Michl john@johnmichl.com wrote:

Rise Version ?? how do I check, I did reinstall recently to try and fix issue

Browser Safari 13.1

Notebook Version — 6.0.3

Installed via PIP

Not sure about browser console messages. Not sure what I’d look for or where. (beginner here)

Note: I tried in Chrome and DO NOT have the problem. So, I’ll run these from there for now though I would like to fix the problem with Safari.

Here’s what passed through the terminal when I just created a new notebook in Safari, then ran the slide show in Safari, then in Chrome.

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050 https://support.apple.com/kb/HT208050. (base) Johns-iMac:~ john$ jupyter notebook [I 09:51:26.512 NotebookApp] The port 8888 is already in use, trying another port. [I 09:51:26.581 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1 [I 09:51:26.845 NotebookApp] JupyterLab extension loaded from /Users/john/anaconda3/lib/python3.7/site-packages/jupyterlab [I 09:51:26.845 NotebookApp] JupyterLab application directory is /Users/john/anaconda3/share/jupyter/lab [I 09:51:26.848 NotebookApp] Serving notebooks from local directory: /Users/john [I 09:51:26.848 NotebookApp] The Jupyter Notebook is running at: [I 09:51:26.848 NotebookApp] http://localhost:8889/?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a http://localhost:8889/?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a [I 09:51:26.849 NotebookApp] or http://127.0.0.1:8889/?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a http://127.0.0.1:8889/?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a [I 09:51:26.849 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 09:51:26.854 NotebookApp]

To access the notebook, open this file in a browser:
    file:///Users/john/Library/Jupyter/runtime/nbserver-46928-open.html <file:///Users/john/Library/Jupyter/runtime/nbserver-46928-open.html>
Or copy and paste one of these URLs:
    http://localhost:8889/?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a <http://localhost:8889/?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a>
 or http://127.0.0.1:8889/?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a <http://127.0.0.1:8889/?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a>

[I 09:51:55.433 NotebookApp] Creating new notebook in [I 09:51:56.464 NotebookApp] Kernel started: 4be048c1-1eae-4d28-9f14-8f1831468a71 [W 09:51:56.550 NotebookApp] 404 GET /nbextensions/zenmode/main.js?v=20200415095125 (::1) 9.57ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [I 09:53:56.419 NotebookApp] Saving file at /Untitled1.ipynb [I 09:55:08.046 NotebookApp] Saving file at /Untitled1.ipynb [W 09:55:08.084 NotebookApp] 404 GET /nbextensions/rise/reveal.js/css/theme/.css?v=20200415095125 (::1) 2.04ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [W 09:55:08.104 NotebookApp] 404 GET /notebooks/rise.css (::1): No such file or directory: rise.css [W 09:55:08.105 NotebookApp] 404 GET /notebooks/rise.css (::1) 18.93ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [W 09:55:08.105 NotebookApp] 404 GET /notebooks/Untitled1.css (::1): No such file or directory: Untitled1.css [W 09:55:08.106 NotebookApp] 404 GET /notebooks/Untitled1.css (::1) 19.63ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [I 09:55:59.423 NotebookApp] Saving file at /Untitled1.ipynb [W 09:57:33.595 NotebookApp] 404 GET /nbextensions/rise/reveal.js/css/theme/.css?v=20200415095125 (::1) 4.02ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [W 09:57:33.597 NotebookApp] 404 GET /notebooks/rise.css (::1): No such file or directory: rise.css [W 09:57:33.598 NotebookApp] 404 GET /notebooks/rise.css (::1) 1.76ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [W 09:57:33.598 NotebookApp] 404 GET /notebooks/Untitled1.css (::1): No such file or directory: Untitled1.css [W 09:57:33.599 NotebookApp] 404 GET /notebooks/Untitled1.css (::1) 2.10ms referer=http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 http://localhost:8889/notebooks/Untitled1.ipynb?kernel_name=python3 [I 09:57:59.419 NotebookApp] Saving file at /Untitled1.ipynb [I 09:59:11.083 NotebookApp] Saving file at /Untitled1.ipynb [I 09:59:14.911 NotebookApp] Starting buffering for 4be048c1-1eae-4d28-9f14-8f1831468a71:98d018ab9aa943a08d72a7670069e0be [I 10:00:30.291 NotebookApp] 302 GET /tree (::1) 0.69ms [I 10:04:51.998 NotebookApp] 302 GET /?token=d0588a5bb1f0a4579e5090fcf6dbe44a108ec6bc8467cd7a (::1) 0.45ms [W 10:04:56.554 NotebookApp] 404 GET /nbextensions/zenmode/main.js?v=20200415095125 (::1) 39.17ms referer=http://localhost:8889/notebooks/Untitled1.ipynb http://localhost:8889/notebooks/Untitled1.ipynb [W 10:04:56.732 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20200415095125 (::1) 1.69ms referer=http://localhost:8889/notebooks/Untitled1.ipynb http://localhost:8889/notebooks/Untitled1.ipynb [W 10:05:03.787 NotebookApp] 404 GET /nbextensions/rise/reveal.js/css/theme/.css?v=20200415095125 (::1) 1.55ms referer=http://localhost:8889/notebooks/Untitled1.ipynb http://localhost:8889/notebooks/Untitled1.ipynb [W 10:05:03.810 NotebookApp] 404 GET /notebooks/rise.css (::1): No such file or directory: rise.css [W 10:05:03.810 NotebookApp] 404 GET /notebooks/rise.css (::1) 1.98ms referer=http://localhost:8889/notebooks/Untitled1.ipynb http://localhost:8889/notebooks/Untitled1.ipynb [W 10:05:03.811 NotebookApp] 404 GET /notebooks/Untitled1.css (::1): No such file or directory: Untitled1.css [W 10:05:03.812 NotebookApp] 404 GET /notebooks/Untitled1.css (::1) 2.66ms referer=http://localhost:8889/notebooks/Untitled1.ipynb http://localhost:8889/notebooks/Untitled1.ipynb [I 10:05:12.980 NotebookApp] Starting buffering for 4be048c1-1eae-4d28-9f14-8f1831468a71:225b5349fe8e4d2d9e9663462a37b986

On Apr 14, 2020, at 6:54 PM, Damian Avila <notifications@github.com mailto:notifications@github.com> wrote:

@johnmichl https://github.com/johnmichl some request for you:

RISE version Browser version Notebook version You installed by pip, right? Any messages in the browser console? Finally, could you please share the failing notebook or a representative example with us?

Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/damianavila/RISE/issues/544#issuecomment-613737864, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALX66OXNKLWCB3DCBYSXVTLRMTZUVANCNFSM4MHWVJXQ.

damianavila commented 4 years ago

@johnmichl thanks fo the update.

The fact that this is Safari-specific is pretty interesting, thank you for trying in another browser.

To check the RISE version you can pip list in the environment where you installed RISE and you should see the version number.

johnmichl commented 4 years ago

Thanks for the tip.

Rise 5.6.1

On Apr 19, 2020, at 6:05 PM, Damian Avila notifications@github.com wrote:

@johnmichl https://github.com/johnmichl thanks fo the update.

The fact that this is Safari-specific is pretty interesting, thank you for trying in another browser.

To check the RISE version you can pip list in the environment where you installed RISE and you should see the version number.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/damianavila/RISE/issues/544#issuecomment-616240465, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALX66OQJISUVJFGXG7KIOMLRNN7SRANCNFSM4MHWVJXQ.

weldonwhitener commented 4 years ago

I'm having the same problem with Safari, but all seems to be working with Chrome. Now I just need to figure out how to make it so that I can open my Jupyter Notebook through Chrome by default so I don't need to input a token every time :)

damianavila commented 4 years ago

Now I just need to figure out how to make it so that I can open my Jupyter Notebook through Chrome by default so I don't need to input a token every time :)

@weldonwhitener this should help you: https://stackoverflow.com/questions/35229604/how-to-change-the-default-browser-used-by-the-ipython-jupyter-notebook-in-linux/35578527#35578527, it should be pretty close in OSX.

Btw, thanks for reporting the replication of the issue.

weldonwhitener commented 4 years ago

@damianavila Thanks for the advice!! I'll have a go at setting my default browser to Chrome for now -- and please let me know if you need anything else from my end in regards to the issue.

Thanks!