jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

Jupyter Notebook requires URL #248

Open andhamel opened 6 years ago

andhamel commented 6 years ago

Hello, I am new to using Jupyter notebook. When I fist started using it, I launched it from the terminal, and it would immediately establish a host. Recently, when I launch jupyter, I get this message, followed by a link:

"Copy/paste this URL into your browser when you connect for the first time, to login with a token".

Is there a way to bypass this step instead of copying a link every time I launch Jupyter?

Thank you in advance!

trallard commented 6 years ago

Hi

Could you provide information on the OS you are using?

I had that issue on my Mac when updating to Sierra so could share the fix if this your case too

andhamel commented 6 years ago

I recently upgraded to High Sierra (10.13.1).

I was accessing Jupyter via Anaconda, but decided to uninstall Anaconda as I didn't need to use the other applications (I had already downloaded RStudio elsewhere, etc).

Then, I was getting myself more familiar with the command line and launched a "jupyter notebook --no-browser" command just to experiment with it. My thought was that it would only open Jupyter with no browser once, but maybe that it is not the case.

I hope this is more information!

trallard commented 6 years ago

You need to locate your jupyter notebook configuration file, it should be located within your jupyter directory e.g. ~/. jupyter/jupyter_notebook_config.py

Once you have located it just use your favourite text editor to add the following bit to it (make sure to adjust for your preferred / default browser) :

c.NotebookApp.browser = u'Chrome'

If you cannot find the file you can create it from the terminal by doing

jupyter notebook --generate-config

Within your Jupyter notebook directory. And then follow the previous step to edit your config file.

Save, restart your terminal and it should work as before

andhamel commented 6 years ago

This helped! Thank you!