RISE
RISE copied to clipboard
No "Enter/Exit Live Reveal Slideshow" button on jupyter notebook.
Hi, I just downloaded Rise from the conda, as you showed here on github, but when I'm using jupyter, the button to enter the presentation doesn't appear. Usually I use the sagemath kernel, but it doesn't even appear with the python kernel. Do I have to do any more installation or do I need a specific command to connect it to the sagemath jupyter notebook?
Thank you for your attention, as well as for this repository.
hi
in theory, the notebook extension does not depend on the kernel, I have successfully used rise with a number of kernels so far
in theory again, simply installing rise through pip or conda should install and enable the notebook extension (although I only use pip to do that myself)
I have no exposure to the sagemath kernel at all, so I suggest we start with focusing on getting your installation to work with a python kernel for starters
can you please provide
- your OS version and your Python installation strategy (which Python distrib and how you install additions)
- the make, and version of your browser
- a snapshot of your browser console when loading the notebook where the button fails to appear; expect it to be a little verbose, we want to focus on odd-looking errors
that last piece of info is probably the most useful
First of all, thanks for the help and willingness, I appreciate that.
- My OS: Linux Mint 20.1 Cinnamon, Cinnamon version: 4.8.6
- I have python in the following versions: 2.7.18, 3.8.5 e 3.9.4(conda). I installed them from the default repository of my OS, that is, I did not configure any new PPA.
- My browser info: Google Chrome - Version 90.0.4430.212 (Official version) 64 bits
- I just installed the new version of sagemath and my jupyter notebook was installed by anaconda. It is up to date, but still has problems with the extension. I will send the snapshot of the browser console.
EDIT: My ipywidgets version is 6.0.0
Hi your javascript console output has several error messages of concern :
- both 404 not found that refer to the /nbextensions/ path
- the Script Error about jsmol/extension
this suggests that one or several other nbextensions are ill-installed, and it seems the likely root cause of your problem
I'm not exactly sure how to address that the most effectively though, it might make sense to disable some or all other exensions maybe on Jupyter's discourse people can provide guidance on how to do this best ?
https://discourse.jupyter.org/
sorry that I can't be more helpful
There's no reason to apologize, it helped me a lot. Thanks again for your attention and willingness to help, I will follow your advice and look on Jupyter's discourse.
Thank you, again.
it might make sense to disable some or all other exensions
Yep, that would help to diagnose... then it seems trying to find out what the other extension is failing would be the second step. I agree with @parmentelat is a good place to ask. It would be also a good idea to contact the creators of the other extensions to check with them what could be happening.
Did you solve? I have the same issue on Ubuntu. fresh venv with python 3.9, pip install RISE and no button, nor Alt-R working.
hey to my knowledge there has been no recent development on this issue
like for @andrelucchini I would suggest that you
- send over a screenshot of you javascript console so that we can have a better grip on what can be going on in your case
- try to disable other extensions as far as possible; in the sceeenshot above for example, there clearly was an issue with loading the
jsmol
extension - whatever that is - and this kind of glitch can have contaminating effects on other extensions like rise
hope this helps
I created an clean virtual env and installed only jupyter and RISE. (I did not install other extensions)
the screenshot is here:
the installation steps:
❯ cd /tmp/
/tmp
❯ python -m venv ./venv
/tmp
❯ cd venv/
/tmp/venv
❯ source bin/activate
/tmp/venv
venv ❯ pip install jupyter --upgrade
Collecting jupyter
Using cached jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting ipykernel
Using cached ipykernel-5.5.5-py3-none-any.whl (120 kB)
Collecting notebook
Using cached notebook-6.4.0-py3-none-any.whl (9.5 MB)
Collecting nbconvert
Using cached nbconvert-6.1.0-py3-none-any.whl (551 kB)
Collecting jupyter-console
Using cached jupyter_console-6.4.0-py3-none-any.whl (22 kB)
Collecting qtconsole
Using cached qtconsole-5.1.0-py3-none-any.whl (119 kB)
Collecting ipywidgets
Using cached ipywidgets-7.6.3-py2.py3-none-any.whl (121 kB)
Collecting tornado>=4.2
Using cached tornado-6.1-cp39-cp39-manylinux2010_x86_64.whl (427 kB)
Collecting jupyter-client
Using cached jupyter_client-6.1.12-py3-none-any.whl (112 kB)
Collecting ipython>=5.0.0
Using cached ipython-7.24.1-py3-none-any.whl (785 kB)
Collecting traitlets>=4.1.0
Using cached traitlets-5.0.5-py3-none-any.whl (100 kB)
Collecting pickleshare
Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting pygments
Using cached Pygments-2.9.0-py3-none-any.whl (1.0 MB)
Collecting backcall
Using cached backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting matplotlib-inline
Using cached matplotlib_inline-0.1.2-py3-none-any.whl (8.2 kB)
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
Using cached prompt_toolkit-3.0.19-py3-none-any.whl (368 kB)
Collecting jedi>=0.16
Using cached jedi-0.18.0-py2.py3-none-any.whl (1.4 MB)
Requirement already satisfied: setuptools>=18.5 in ./lib/python3.9/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (44.1.1)
Collecting decorator
Using cached decorator-5.0.9-py3-none-any.whl (8.9 kB)
Collecting pexpect>4.3
Using cached pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
Collecting parso<0.9.0,>=0.8.0
Using cached parso-0.8.2-py2.py3-none-any.whl (94 kB)
Collecting ptyprocess>=0.5
Using cached ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting wcwidth
Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting ipython-genutils
Using cached ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting widgetsnbextension~=3.5.0
Using cached widgetsnbextension-3.5.1-py2.py3-none-any.whl (2.2 MB)
Collecting nbformat>=4.2.0
Using cached nbformat-5.1.3-py3-none-any.whl (178 kB)
Collecting jupyterlab-widgets>=1.0.0
Using cached jupyterlab_widgets-1.0.0-py3-none-any.whl (243 kB)
Collecting jupyter-core
Using cached jupyter_core-4.7.1-py3-none-any.whl (82 kB)
Collecting jsonschema!=2.5.0,>=2.4
Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting six>=1.11.0
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pyrsistent>=0.14.0
Using cached pyrsistent-0.17.3.tar.gz (106 kB)
Collecting attrs>=17.4.0
Using cached attrs-21.2.0-py2.py3-none-any.whl (53 kB)
Collecting argon2-cffi
Using cached argon2_cffi-20.1.0-cp35-abi3-manylinux1_x86_64.whl (97 kB)
Collecting Send2Trash>=1.5.0
Using cached Send2Trash-1.7.1-py3-none-any.whl (17 kB)
Collecting jinja2
Using cached Jinja2-3.0.1-py3-none-any.whl (133 kB)
Collecting pyzmq>=17
Using cached pyzmq-22.1.0-cp39-cp39-manylinux2010_x86_64.whl (1.1 MB)
Collecting terminado>=0.8.3
Using cached terminado-0.10.1-py3-none-any.whl (14 kB)
Collecting prometheus-client
Using cached prometheus_client-0.11.0-py2.py3-none-any.whl (56 kB)
Collecting python-dateutil>=2.1
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting cffi>=1.0.0
Using cached cffi-1.14.5-cp39-cp39-manylinux1_x86_64.whl (406 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting MarkupSafe>=2.0
Using cached MarkupSafe-2.0.1-cp39-cp39-manylinux2010_x86_64.whl (30 kB)
Collecting jupyterlab-pygments
Using cached jupyterlab_pygments-0.1.2-py2.py3-none-any.whl (4.6 kB)
Collecting testpath
Using cached testpath-0.5.0-py3-none-any.whl (84 kB)
Collecting entrypoints>=0.2.2
Using cached entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Collecting defusedxml
Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting nbclient<0.6.0,>=0.5.0
Using cached nbclient-0.5.3-py3-none-any.whl (82 kB)
Collecting mistune<2,>=0.8.1
Using cached mistune-0.8.4-py2.py3-none-any.whl (16 kB)
Collecting pandocfilters>=1.4.1
Using cached pandocfilters-1.4.3.tar.gz (16 kB)
Collecting bleach
Using cached bleach-3.3.0-py2.py3-none-any.whl (283 kB)
Collecting async-generator
Using cached async_generator-1.10-py3-none-any.whl (18 kB)
Collecting nest-asyncio
Using cached nest_asyncio-1.5.1-py3-none-any.whl (5.0 kB)
Collecting packaging
Using cached packaging-20.9-py2.py3-none-any.whl (40 kB)
Collecting webencodings
Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting pyparsing>=2.0.2
Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting qtpy
Using cached QtPy-1.9.0-py2.py3-none-any.whl (54 kB)
Using legacy 'setup.py install' for pyrsistent, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pandocfilters, since package 'wheel' is not installed.
Installing collected packages: ipython-genutils, traitlets, six, pyrsistent, attrs, wcwidth, tornado, pyzmq, python-dateutil, pyparsing, ptyprocess, parso, jupyter-core, jsonschema, webencodings, pygments, pycparser, prompt-toolkit, pickleshare, pexpect, packaging, nest-asyncio, nbformat, matplotlib-inline, MarkupSafe, jupyter-client, jedi, decorator, backcall, async-generator, testpath, pandocfilters, nbclient, mistune, jupyterlab-pygments, jinja2, ipython, entrypoints, defusedxml, cffi, bleach, terminado, Send2Trash, prometheus-client, nbconvert, ipykernel, argon2-cffi, notebook, widgetsnbextension, qtpy, jupyterlab-widgets, qtconsole, jupyter-console, ipywidgets, jupyter
Running setup.py install for pyrsistent ... done
Running setup.py install for pandocfilters ... done
Successfully installed MarkupSafe-2.0.1 Send2Trash-1.7.1 argon2-cffi-20.1.0 async-generator-1.10 attrs-21.2.0 backcall-0.2.0 bleach-3.3.0 cffi-1.14.5 decorator-5.0.9 defusedxml-0.7.1 entrypoints-0.3 ipykernel-5.5.5 ipython-7.24.1 ipython-genutils-0.2.0 ipywidgets-7.6.3 jedi-0.18.0 jinja2-3.0.1 jsonschema-3.2.0 jupyter-1.0.0 jupyter-client-6.1.12 jupyter-console-6.4.0 jupyter-core-4.7.1 jupyterlab-pygments-0.1.2 jupyterlab-widgets-1.0.0 matplotlib-inline-0.1.2 mistune-0.8.4 nbclient-0.5.3 nbconvert-6.1.0 nbformat-5.1.3 nest-asyncio-1.5.1 notebook-6.4.0 packaging-20.9 pandocfilters-1.4.3 parso-0.8.2 pexpect-4.8.0 pickleshare-0.7.5 prometheus-client-0.11.0 prompt-toolkit-3.0.19 ptyprocess-0.7.0 pycparser-2.20 pygments-2.9.0 pyparsing-2.4.7 pyrsistent-0.17.3 python-dateutil-2.8.1 pyzmq-22.1.0 qtconsole-5.1.0 qtpy-1.9.0 six-1.16.0 terminado-0.10.1 testpath-0.5.0 tornado-6.1 traitlets-5.0.5 wcwidth-0.2.5 webencodings-0.5.1 widgetsnbextension-3.5.1
/tmp/venv 16s
venv ❯ pip install RISE
Collecting RISE
Using cached rise-5.7.1-py2.py3-none-any.whl (4.3 MB)
Requirement already satisfied: notebook>=6.0 in ./lib/python3.9/site-packages (from RISE) (6.4.0)
Requirement already satisfied: pyzmq>=17 in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (22.1.0)
Requirement already satisfied: Send2Trash>=1.5.0 in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (1.7.1)
Requirement already satisfied: prometheus-client in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (0.11.0)
Requirement already satisfied: nbformat in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (5.1.3)
Requirement already satisfied: jinja2 in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (3.0.1)
Requirement already satisfied: traitlets>=4.2.1 in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (5.0.5)
Requirement already satisfied: jupyter-client>=5.3.4 in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (6.1.12)
Requirement already satisfied: ipykernel in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (5.5.5)
Requirement already satisfied: jupyter-core>=4.6.1 in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (4.7.1)
Requirement already satisfied: ipython-genutils in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (0.2.0)
Requirement already satisfied: nbconvert in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (6.1.0)
Requirement already satisfied: tornado>=6.1 in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (6.1)
Requirement already satisfied: terminado>=0.8.3 in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (0.10.1)
Requirement already satisfied: argon2-cffi in ./lib/python3.9/site-packages (from notebook>=6.0->RISE) (20.1.0)
Requirement already satisfied: python-dateutil>=2.1 in ./lib/python3.9/site-packages (from jupyter-client>=5.3.4->notebook>=6.0->RISE) (2.8.1)
Requirement already satisfied: six>=1.5 in ./lib/python3.9/site-packages (from python-dateutil>=2.1->jupyter-client>=5.3.4->notebook>=6.0->RISE) (1.16.0)
Requirement already satisfied: ptyprocess in ./lib/python3.9/site-packages (from terminado>=0.8.3->notebook>=6.0->RISE) (0.7.0)
Requirement already satisfied: cffi>=1.0.0 in ./lib/python3.9/site-packages (from argon2-cffi->notebook>=6.0->RISE) (1.14.5)
Requirement already satisfied: pycparser in ./lib/python3.9/site-packages (from cffi>=1.0.0->argon2-cffi->notebook>=6.0->RISE) (2.20)
Requirement already satisfied: ipython>=5.0.0 in ./lib/python3.9/site-packages (from ipykernel->notebook>=6.0->RISE) (7.24.1)
Requirement already satisfied: pickleshare in ./lib/python3.9/site-packages (from ipython>=5.0.0->ipykernel->notebook>=6.0->RISE) (0.7.5)
Requirement already satisfied: jedi>=0.16 in ./lib/python3.9/site-packages (from ipython>=5.0.0->ipykernel->notebook>=6.0->RISE) (0.18.0)
Requirement already satisfied: setuptools>=18.5 in ./lib/python3.9/site-packages (from ipython>=5.0.0->ipykernel->notebook>=6.0->RISE) (44.1.1)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in ./lib/python3.9/site-packages (from ipython>=5.0.0->ipykernel->notebook>=6.0->RISE) (3.0.19)
Requirement already satisfied: decorator in ./lib/python3.9/site-packages (from ipython>=5.0.0->ipykernel->notebook>=6.0->RISE) (5.0.9)
Requirement already satisfied: pygments in ./lib/python3.9/site-packages (from ipython>=5.0.0->ipykernel->notebook>=6.0->RISE) (2.9.0)
Requirement already satisfied: pexpect>4.3 in ./lib/python3.9/site-packages (from ipython>=5.0.0->ipykernel->notebook>=6.0->RISE) (4.8.0)
Requirement already satisfied: matplotlib-inline in ./lib/python3.9/site-packages (from ipython>=5.0.0->ipykernel->notebook>=6.0->RISE) (0.1.2)
Requirement already satisfied: backcall in ./lib/python3.9/site-packages (from ipython>=5.0.0->ipykernel->notebook>=6.0->RISE) (0.2.0)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in ./lib/python3.9/site-packages (from jedi>=0.16->ipython>=5.0.0->ipykernel->notebook>=6.0->RISE) (0.8.2)
Requirement already satisfied: wcwidth in ./lib/python3.9/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=5.0.0->ipykernel->notebook>=6.0->RISE) (0.2.5)
Requirement already satisfied: MarkupSafe>=2.0 in ./lib/python3.9/site-packages (from jinja2->notebook>=6.0->RISE) (2.0.1)
Requirement already satisfied: jupyterlab-pygments in ./lib/python3.9/site-packages (from nbconvert->notebook>=6.0->RISE) (0.1.2)
Requirement already satisfied: pandocfilters>=1.4.1 in ./lib/python3.9/site-packages (from nbconvert->notebook>=6.0->RISE) (1.4.3)
Requirement already satisfied: testpath in ./lib/python3.9/site-packages (from nbconvert->notebook>=6.0->RISE) (0.5.0)
Requirement already satisfied: nbclient<0.6.0,>=0.5.0 in ./lib/python3.9/site-packages (from nbconvert->notebook>=6.0->RISE) (0.5.3)
Requirement already satisfied: bleach in ./lib/python3.9/site-packages (from nbconvert->notebook>=6.0->RISE) (3.3.0)
Requirement already satisfied: defusedxml in ./lib/python3.9/site-packages (from nbconvert->notebook>=6.0->RISE) (0.7.1)
Requirement already satisfied: mistune<2,>=0.8.1 in ./lib/python3.9/site-packages (from nbconvert->notebook>=6.0->RISE) (0.8.4)
Requirement already satisfied: entrypoints>=0.2.2 in ./lib/python3.9/site-packages (from nbconvert->notebook>=6.0->RISE) (0.3)
Requirement already satisfied: async-generator in ./lib/python3.9/site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->notebook>=6.0->RISE) (1.10)
Requirement already satisfied: nest-asyncio in ./lib/python3.9/site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->notebook>=6.0->RISE) (1.5.1)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in ./lib/python3.9/site-packages (from nbformat->notebook>=6.0->RISE) (3.2.0)
Requirement already satisfied: attrs>=17.4.0 in ./lib/python3.9/site-packages (from jsonschema!=2.5.0,>=2.4->nbformat->notebook>=6.0->RISE) (21.2.0)
Requirement already satisfied: pyrsistent>=0.14.0 in ./lib/python3.9/site-packages (from jsonschema!=2.5.0,>=2.4->nbformat->notebook>=6.0->RISE) (0.17.3)
Requirement already satisfied: packaging in ./lib/python3.9/site-packages (from bleach->nbconvert->notebook>=6.0->RISE) (20.9)
Requirement already satisfied: webencodings in ./lib/python3.9/site-packages (from bleach->nbconvert->notebook>=6.0->RISE) (0.5.1)
Requirement already satisfied: pyparsing>=2.0.2 in ./lib/python3.9/site-packages (from packaging->bleach->nbconvert->notebook>=6.0->RISE) (2.4.7)
Installing collected packages: RISE
Successfully installed RISE-5.7.1
/tmp/venv
venv ❯ jupyter notebook
[I 09:41:17.298 NotebookApp] Serving notebooks from local directory: /tmp/venv
[I 09:41:17.298 NotebookApp] Jupyter Notebook 6.2.0 is running at:
...
hi
I am not 100% positive that this way of doing things implies no other extension is active indeed jupyter has its own configuration cascading mechanism that does not always play well with virtualized envs honestly I myself use miniconda and so I can't say for sure about venv BUT one way to get a better understanding of what's going on is to run
jupyter --paths
so as to see which folders are actually involved in the computing of eventual settings and of course
jupyter nbextension list
if I'm right this could show other extensions that you unaware inherit from the host environment
could we first check that before we search for other possible causes ?
PS not that it could be a killer weapon here, but for just in case let me mention the possibility to define
JUPYTER_PREFER_ENV_PATH=1
as explained here https://discourse.jupyter.org/t/jupyter-paths-priority-order/7771
Hi, I was also facing the same issue. Here is how I solved it. My installation settings.
- Using WSL(Ubuntu 20.04 LTS) on windows with python and jupyter-notebook installed
- Not using VirtualEnv for python
- No extensions installed.(Rise was the first extension I really needed so I though of giving it a try)
- Rise version
5.7.1
Steps which I did to solve issue at my end.
- Install
widgetsnbextension
pip install widgetsnbextension
- Enable
widgetsnbextension
jupyter nbextension enable --py widgetsnbextension
- Remove rise if installed and install it again
pip uninstall rise
pip install rise
- Enable rise as extension
jupyter nbextension enable --py rise
if you have virtual env enabled i think we need to append--sys-prefix
to each enable command
Now if you run
jupyter-nbextension list
you can see rise and one of the extension
Its working fine after I followed these steps.
Hi, I also have Rise version 5.7.1
and
config dir: /Users/lgzdl/.jupyter/nbconfig
notebook section
jupyter-js-widgets/extension enabled
- Validating: OK
rise/main enabled
- Validating: OK
config dir: /usr/local/anaconda3/etc/jupyter/nbconfig notebook section rise/main enabled - Validating: OK voila/extension enabled - Validating: OK jupyter-js-widgets/extension enabled - Validating: OK
but nope no Alt-R. I can export using Reveal.js but no live rendering. I can do a live rendering with voilà ... Could there be a conflict between voilà and RISE?
Thanks
hi
how did you install rise ? I personally don't use conda; if you've installed with conda can you try installing with pip instead to see if that's better ? also, in a completely other direction, can you post a screenshot of you web console when the issue occurs and alt-r won't work ? I take you don't see the rise button either ?
Hi, I did both (at first using pip
) and in the current setting with conda
.
I have a little greyed button next to R on the top left .. could that be the missing rise button? Thanks
Ah! but this is jupyterlab, and rise unfortunately supports only jupyter classic !