Launching Jupyter Notebook within an instance

The following steps will easily install and start a jupyter notebook on any active instance.

NOTE: The Jupyter install generally requires more disk-space/memory than an m1.tiny or m1.small has, so we recommend m1.medium or larger.

Step-by-step guide

  1. Login to the instance using web shell or using an ssh client.
  2. Type "ezj". Jupyter notebook will then be installed and configured within a couple of minutes.

    [myuser@js-157-60]:~$ ezj
  3. After the installation is complete, a url will be shown. An example is shown below. You can use any browser to connect to this URL.

    Creating default environment...
    Installation finished
    DEBUG: using python version 3
    [I 01:59:19.253 NotebookApp] Writing notebook server cookie secret to /run/user/1000/jupyter/notebook_cookie_secret
    [I 01:59:19.314 NotebookApp] Serving notebooks from local directory: /home/myuser
    [I 01:59:19.314 NotebookApp] 0 active kernels
    [I 01:59:19.315 NotebookApp] The Jupyter Notebook is running at:
    [I 01:59:19.315 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    [I 01:59:19.315 NotebookApp] 
        Copy/page this URL into your browser when you connect for the first time,
        to login with a token:

    CAUTION: Closing your Jupyter notebook

    If you close your web shell or your ssh session, the Jupyter notebook will shutdown.

    4. To restart to your Jupyter notebook without reinstalling:

    [myuser@js-157-60]:~$ ezj -q


If you have Python3 installed, you may select it instead using :

ezj 3

if you wish to choose Python2 use:

ezj 2

Other Options to pass to 'ezj':

-q : do not attempt to install, just launch jupyter!

-R : install the R kernel (-r also works)

-2 : force python 2 kernel (not compatible with -3 option)

-3 : force python 3 kernel (not compatible with -2 option)

-u : force update of anaconda (default is no update)

-p : takes a directory as an option; install in a different location other than default (/home)

NOTE: if you set this, you must pass it again for future calls

Example of options:

ezj -u -R

ezj -p /opt -u

Interested in combining your Jupyter Notebook with R-studio?

See this installation guide from the CyVerse team:   [EZJ + R-studio ]