Docker files for jupyterlab
690
This is a Dockerfile that JupyterLab automatically builds Docker images.
support for Jupiter lab, and commonly used plugins in jupyter lab.
For more details,
Github: link
Docker: link
docker run -it --name lab --restart=always -p "$PORT":8888 -v "$PWD":/notebooks silvesterhsu/jupyterlab:"$TAG"
$PORT: Port mapping. It is the port that needs to link the local to the image. In docker, jupyter will open port 8888 as a web access. If the local port 8888 is not occupied, it is recommended to use 8888.
$PWD: File mapping. Project work path
$TAG: latest or ARM, if not filled in, the latest version is downloaded by default. It all depends on your CPU. If you are installing with Raspberry Pi, please use ARM.
Example:
docker run -it --name lab --restart=always -p 8888:8888 -v ~/new_project:/notebooks silvesterhsu/jupyterlab
Once you start container, an uniquetoken will be shown in the terminal.

Use the token to setup a password when you open the browser 127.0.0.1:8888.
note: The port number depends on the port you are mapping

Once the password is set and successfully logged in, jupyterLab completes the password configuration. You need to terminate and restart the lab container in the terminal.
Use control+C to stop the jupyterlab container, or start a new terminal:
docker restart lab
It is necessary to restart the container. After the password is stored, it needs to be restarted to apply.
Then, setting the password is complete.
This image has already installed some common used extension, such as jupyterlab-toc, jupyterlab_code_formatterand jupyterlab_sublime etc.
Manage Extensions:
Go to Settings -> Enable Extension Manager (experimental).
Once found, you can find a tag similar to the puzzle on the left. It can be very convenient to install and remove extensions.
Go to Settings -> Advanced Setting Editor -> Keyboard Shortcutsto add hot key.
For example, add hot key for moving cell up and down:
{
"shortcuts": [
{
"command": "notebook:move-cell-down",
"keys": [
"Ctrl ["
],
"selector": ".jp-Notebook:focus",
"title": "Move Cells Down",
"category": "Notebook Cell Operations"
},
{
"command": "notebook:move-cell-up",
"keys": [
"Ctrl ]"
],
"selector": ".jp-Notebook:focus",
"title": "Move Cells Down",
"category": "Notebook Cell Operations"
}
]
}
Content type
Image
Digest
Size
505.5 MB
Last updated
almost 7 years ago
docker pull silvesterhsu/jupyterlab