Skip to content

Commit

Permalink
rm random token
Browse files Browse the repository at this point in the history
  • Loading branch information
NLP Team authored and NLP Team committed Sep 8, 2018
1 parent 5134acb commit 00db520
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ For example,
`docker run -it -v /Users/mittov/Documents/shad/semester4/ -p 8888:8888 justheuristic/nlp_course sh ../run_jupyter.sh`


Then you can access your jupyter in a browser at `localhost:<local_port>/?token=<token_you_see_in_container_logs>`, e.g. `localhost:8888/?token=ad1a5a0aab43efb47a9a805388fcf508d0b5f84a16e4542b&token=ad1a5a0aab43efb47a9a805388fcf508d0b5f84a16e4542b`
Then you can access your jupyter in a browser at `localhost:<local_port>`.

If it asks you to enter token, you will find one in container logs, e.g. `localhost:8888/?token=ad1a5a0aab43efb47a9a805388fcf508d0b5f84a16e4542b&token=ad1a5a0aab43efb47a9a805388fcf508d0b5f84a16e4542b`.

## Manual
Build container
Expand All @@ -39,4 +41,4 @@ examples:
`$ docker run --rm -it -v /Users/mittov/Documents/shad/semester4/:/notebooks -p 8888:8888 nlp`

Copy the token from console and run
http://localhost:8888/?token=<token>
http://localhost:8888/ (if it asks for token, see "native")
2 changes: 1 addition & 1 deletion docker/run_jupyter.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
jupyter notebook --no-browser --allow-root --ip 0.0.0.0
jupyter notebook --no-browser --allow-root --ip 0.0.0.0 --NotebookApp.token=

0 comments on commit 00db520

Please sign in to comment.