floydhub / floyd-docs

FloydHub's documentation code. Contributions welcome!
https://docs.floydhub.com/
63 stars 67 forks source link

Installing Jupyter slideshow extension #117

Closed louisdorard closed 6 years ago

louisdorard commented 6 years ago

I tried to install https://github.com/damianavila/RISE . I added RISE to floyd_requirements.txt but I don't know how to do the following steps:

jupyter-nbextension install rise --py --sys-prefix jupyter-nbextension enable rise --py --sys-prefix

I can't find a solution from the information at https://docs.floydhub.com/guides/jobs/installing_dependencies/

saiprashanths commented 6 years ago

You can include them as part of your floyd run command. See docs here.

saiprashanths commented 6 years ago

Also, you might find better community help in our forum: https://forum.floydhub.com/ :)

louisdorard commented 6 years ago

@saiprashanths ah yes I'll post it in the forum... FYI I don't think this case is covered in the docs. The link you sent points to "Installing Non-Python Dependencies", and the opening paragraph of that section points to another section for the case of using Jupyter: "If you are using a Jupyter Notebook, you can follow these steps to install arbitrary packages interactively." However, in that other section of the page ("Installing Dependencies Inside Jupyter Notebook"), we are already inside a Jupyter notebook...

saiprashanths commented 6 years ago

Sorry, I linked to the wrong section in the docs! This is the right one: SSH into a job.

Anyway, I just tried it out. Here are the steps:

  1. Open a Jupyter Notebook: floyd run --mode jupyter
  2. Open a Jupyter Terminal (New->Terminal). Run the commands here:
    pip install RISE
    jupyter-nbextension install rise --py --sys-prefix
    jupyter-nbextension enable rise --py --sys-prefix
  3. Now open a new Jupyter Notebook (New->Python 3 Notebook). You should see RISE installed and available (see below) image

Hope it helps! We'll think about how to make this easier :)