Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files Browse the repository at this point in the history
eitsupi committed Apr 1, 2023
1 parent 4a29450 commit f23a48e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions images/versioned/binder.md
Original file line number Diff line number Diff line change
@@ -43,20 +43,14 @@ This document is for R 4.0.0 >= images.
### Use outside of Binder

If you use this image with Docker,
the default command runs [Jupyter Notebook](https://jupyter-notebook.readthedocs.io/en/latest/).
Since the Jupyter Notebook port is set to `8888`,
you can open the Jupyter Notebook screen on `localhost:8888` from your browser with the following command.
the default command runs [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/).
Since the JupyterLab port is set to `8888`,
you can open the JupyterLab screen on `localhost:8888` from your browser with the following command.

```sh
docker run --rm -ti -p 8888:8888 rocker/binder
```

Or, start [JupyterLab](https://github.com/jupyterlab/jupyterlab) instead of Jupyter Notebook like this.

```sh
docker run --rm -ti -p 8888:8888 rocker/binder sh -c "jupyter lab --ip 0.0.0.0 --no-browser"
```

You can log in by entering the token displayed in the terminal as your password.

If you want to set your own password for Jupyter, you can set it as a environment variable `JUPYTER_TOKEN`[^jupyter].

0 comments on commit f23a48e

Please sign in to comment.