I am using the Jupyter notebook a lot, so I would like to make opening it as short and as easy as possible. Is there a way to avoid opening it by typing "Jupiter notebook" in the terminal? Is there some short key? (I am using it on Ubuntu 16.04)
3 Answers
If you really want, you can put this in your ~/.bashrc file
jupyter notebook
Each time you open a terminal, that command will execute automatically. So, the first time would be okay but if you open up more terminals, that command will get executed each time.
However if you really want, you can write a script that will only execute that command if jupyter is not already running. (Use ps and grep for jupyter). If you do that, replace that 'jupyter notebook' line in your .bashrc with the name of your script.

- 326
- 3
- 12
-
I see that starting jupyter from the console is the most straightforward way, everything else is more cumbersome. I will stick to console. But thanks for answering! – NeStack Feb 22 '18 at 10:14
How about an alias? Edit your bash profile and set an alias for jupyter notebook e.g. alias jpy="jupyter notebook"
. You can even specify notebooks for direct opening of a specific file, I think.

- 549
- 5
- 15
As already mentioned similar and helpful questions to this one are here and here. I tried to use on my new Mac the package nbopen, that other users have reported to do the job, but I couldn't manage to make it work properly. Eventually, this answer here brought me the desired solution.

- 1,739
- 1
- 20
- 40