About running jupyter over google-chrome --user-data-dir

27 views
Skip to first unread message

Abraham Zamudio

unread,
Dec 1, 2020, 4:45:34 PM12/1/20
to Project Jupyter
Hello everyone,

I have the need to execute jupyter on some directories, which I plan to do with different executions of chrome (--user-data-dir), please have any idea how to execute something like:

jupyter notebook --browser = 'google-chrome --user-data-dir = / tmp /'

thank you

Matt Proetsch

unread,
Dec 1, 2020, 8:01:27 PM12/1/20
to jup...@googlegroups.com
You could write a wrapper script as follows, put it in /usr/local/bin/my-browser:

#!/usr/bin/env bash
google-chrome --user-data-dir /tmp/ $@

The $@ at the end will expand to the remaining arguments which Jupyter will pass to the browser. Make sure to run chmod +x /usr/local/bin/my-browser to make the script executable.

then pass --browser=my-browser to Jupyter. 


--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/d278b80a-f9e6-49b9-827f-35209b5424e5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages