Intro to JupyterLab
When you start the JupyterHub, you will be in JupyterLab.
Terminal/Shell
Log into the JupyterHub. If you do not see something like this
Then go to File > New Launcher
Click on the “Terminal” box to open a new terminal window.
Shell or Terminal Basics
If you have no experience working in a terminal, check out this self-paced lesson on running scripts from the shell: Shell Lesson from Software Carpentry
Basic shell commands:
pwd
where am Icd nameofdir
move into a directorycd ..
move up a directoryls
list the files in the current directoryls -a
list the files including hidden filesls -l
list the files with more infocat filename
print out the contents of a filerm filename
remove a filerm -r directoryname
remove a directoryrm -rf directoryname
force remove a directory; careful no recovery
Close the terminal by clicking on the X in the terminal tab.
Create a new Jupyter notebook
From Launcher, click on the “Python 3” button, this will open a new Jupyter notebook.
Running code in a cell
To run code in a cell, click in the cell and then hit “Shift Return”. You can also click “Run” in the menu or click the little right arrow in the top navbar above the cells.
Creating and rendering markdown
Create an new cell (you can click the “+” in the top navbar) and then change to markdown by clicking the dropdown next to “Download” in the top navbar. Type in some markdown and the run the cell (see above on how to run cells).
Running all cells in a notebook
Use the “Run” menu.
Install packages
Use pip install
in a cell. This will not persist between sessions.
Learn more
There are lots of tutorials on JupyterLab out there. Do a search to find content that works for you.