Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jupyter slideshow not fully implemented #2569

Closed
williamstein opened this issue Dec 11, 2017 · 6 comments
Closed

jupyter slideshow not fully implemented #2569

williamstein opened this issue Dec 11, 2017 · 6 comments

Comments

@williamstein
Copy link
Contributor

  1. Create a jupyter notebook (modern)
  2. Click File --> Slides
  3. Open the resulting html file (e.g, using the download link to get a nice html viewer)
  4. It does not work. The console shows why -- missing reveal.js:

screenshot 2017-12-11 at 2 56 49 pm

@williamstein
Copy link
Contributor Author

Reported by: Stefan Lukits

@williamstein
Copy link
Contributor Author

williamstein commented Dec 12, 2017

Here is a workaround until we do something more automatic. It's basically doing what you're officially supposed to do, but with some tricks to make this work from within CoCalc.

  1. Make sure your ipynb file is saved.
  2. Open a terminal in CoCalc by typing (+New Terminal). It's best to do this in the same directory as your ipynb file.
  3. Copy and paste this, where you replace slides.ipynb with the name of your ipynb file.
jupyter nbconvert --to slides --ServePostProcessor.port=8080 --ServePostProcessor.ip='*' --ServePostProcessor.open_in_browser=False "slides.ipynb" --post serve
  1. Open this link in another browser tab:
https://cocalc.com/45f4aab5-7698-4ac8-9f63-9fd307401ad7/server/8080/slides.slides.html#/

where you replace 45f4aab5-7698-4ac8-9f63-9fd307401ad7 by the id of your project (which in the project settings or the URL bar).

@williamstein
Copy link
Contributor Author

I hope people will test this on complicated slideshows and see if it works well.

@williamstein williamstein changed the title jupyter slideshow doesn't work jupyter slideshow not fully implemented Dec 12, 2017
@haraldschilly
Copy link
Contributor

Similar technology, but more modern: did you look into "RISE". Should we work on creating something similar to it?

I installed it locally in my test project for the classical notebook. It's using the same overall reveal.js technology, but runs right inside the notebook ... i.e. it doesn't use a server. It also allows you to execute the cells.

pip3 install --user rise
jupyter-nbextension install rise --py --user
jupyter-nbextension enable rise --py --user

and then there is a new button in the classical notebook interface

@williamstein
Copy link
Contributor Author

did you look into "RISE".

Yes. It's an extension which works inside classical Jupyter, and allows for live interaction with the slides. In other words, it's basically like the slideshow mode that we wrote for sagenb in 2007, but with much nicer Javascript/navigation.

You should definitely put making RISE available by default on your todo list for software installs, and when I redo this properly (not just a quick hack), I'll want to clone RISE inside CoCalc Jupyter.

@williamstein
Copy link
Contributor Author

williamstein commented Dec 12, 2017

Let's just say this issue is to have a slideshow mode at all, and it is now done.

The other issue #2158 would be to implement something like RISE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants