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.
- Login to the instance using web shell or using an ssh client.
Type "ezj". Jupyter notebook will then be installed and configured within a couple of minutes.
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...
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: http://188.8.131.52:8888/?token=ae2353144663d5b4b5e384487a0f1dbf11f5ac1a5194d872
[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 :
if you wish to choose Python2 use:
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:
Interested in combining your Jupyter Notebook with R-studio?
See this installation guide from the CyVerse team: [EZJ + R-studio ]