Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to open browser with login token #1

Open
whrobbins opened this issue Dec 28, 2016 · 0 comments
Open

Add script to open browser with login token #1

whrobbins opened this issue Dec 28, 2016 · 0 comments

Comments

@whrobbins
Copy link
Owner

Write a script to grep the terminal output and automatically open a browser. Example terminal output:

docker run -it -v $(pwd):/notebooks -p 8888:8888 whrobbins/great-big-notebook:latest
[I 22:57:53.220 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
[I 22:57:53.248 NotebookApp] Serving notebooks from local directory: /
[I 22:57:53.248 NotebookApp] 0 active kernels
[I 22:57:53.248 NotebookApp] The Jupyter Notebook is running at: http://0.0.0.0:8888/?token=ba8e94bf96395730ff99e006ae4ae34d13242ca326f1ebe3
[I 22:57:53.248 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 22:57:53.249 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://0.0.0.0:8888/?token=ba8e94bf96395730ff99e006ae4ae34d13242ca326f1ebe3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant