diff --git a/docs/labs/edit-jupyterlab-instructions-computer.md b/docs/labs/edit-jupyterlab-instructions-computer.md index 57b5b59..6d00d99 100644 --- a/docs/labs/edit-jupyterlab-instructions-computer.md +++ b/docs/labs/edit-jupyterlab-instructions-computer.md @@ -33,10 +33,10 @@ git clone https://gitlab.com/ibm/skills-network/quicklabs/\ Note: The SkillsNetwork JupyterLab Docker Image requires \~4.5 GB of download data. Once extracted, the image totals \~10GB. - -### Prerequisites - - [Docker](https://docs.docker.com/get-docker/) is installed and running. - -### Pulling the SkillsNetwork JupyterLab Image: - -```bash -docker pull skillsnetworkbot/jupyterlab-authoring:latest -``` - -### Starting JupyterLab in Your Current Working Directory -```bash -docker run -p 8888:8888 -v "$(pwd)":/resources --platform linux/x86_64 skillsnetworkbot/jupyterlab-authoring:latest jupyter lab --ip 0.0.0.0 --ServerApp.password='' --ServerApp.token='' --port 8888 --no-browser --allow-root -``` - -You will then see a link "`http://127.0.0.1:8888/lab`" go to this link in your browser to edit your jupyter lab(s)! - -> Note: Don't use the "`http://[RANDOM HASH]:8888/lab`" url, since it won't work. - -### Adding sn_jupyterlab alias to rc file (optional, advanced) -It may be annoying to have to type out: -```bash -docker run -p 8888:8888 -v "$(pwd)":/resources --platform linux/x86_64 skillsnetworkbot/jupyterlab-authoring:latest jupyter lab --ip 0.0.0.0 --ServerApp.password='' --ServerApp.token='' --port 8888 --no-browser --allow-root -``` -every time you want to run the SkillsNetwork JupyterLab image in your current working directory. - -Alternatively, you can add an alias to your rc file, for example if using `zsh`, add the following to `~/.zshrc` (if using `bash` then replace `~/.zshrc` with `~/.bashrc` in the following instructions): -```bash -alias sn_jupyterlab="docker run -p 8888:8888 -v \"\$(pwd)\":/resources --platform linux/x86_64 skillsnetworkbot/jupyterlab-authoring:latest jupyter lab --ip 0.0.0.0 --ServerApp.password='' --ServerApp.token='' --port 8888 --no-browser --allow-root" -``` - -Then run `source ~/.zshrc` to update - -Now you can always run the SkillsNetwork JupyterLab image in your current working directory by typing `sn_jupyterlab` in your terminal.