Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Start with specific notebook, skip browser #225

Closed
tammojan opened this issue Mar 7, 2016 · 3 comments
Closed

Start with specific notebook, skip browser #225

tammojan opened this issue Mar 7, 2016 · 3 comments

Comments

@tammojan
Copy link

tammojan commented Mar 7, 2016

I'm writing a tutorial + kernel for my favorite language, TaQL. I'd like to redirect tmpnb directly to the notebook, instead of presenting users with the Jupyter browser first (so exactly the Nature use case). Where would I specify this? Since jupyter launches with --no-browser, I cannot specify it as a command line option to jupyer. I'm using start-notebook.sh, etc.

If this is the wrong place to ask this, please point to a better place. Thanks!

@rgbkrk
Copy link
Member

rgbkrk commented Mar 7, 2016

As long as the notebook will always be in the same place, there's a --redirect-uri option to tmpnb (orchestrate.py).

docker run --net=host -d -e CONFIGPROXY_AUTH_TOKEN=$TOKEN \
           -v /var/run/docker.sock:/docker.sock \
           jupyter/tmpnb python orchestrate.py \
             --image='jupyter/nature-demo' \
             --redirect-uri='/notebooks/Nature.ipynb' \ # This is assumed to be a path after /user/whatever/
             --command="jupyter notebook --NotebookApp.base_url={base_path} --ip=0.0.0.0 --port {port}"

I can't recall if/how our command differs there.

@tammojan
Copy link
Author

tammojan commented Mar 7, 2016

@rgbkrk Great, that works. Thanks for the quick reply!

@rgbkrk rgbkrk closed this as completed Mar 7, 2016
@rgbkrk
Copy link
Member

rgbkrk commented Mar 7, 2016

No problem. 🍰

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants