Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start IPython notebook server without running web browser?

I would like to use Emacs as main editor for iPython notebooks / Jupyter Notebook (with the package ein). I want to ask you if there is a way to run the server without the need to open a web browser.

like image 272
Enrico Pirani Avatar asked Aug 11 '15 23:08

Enrico Pirani


People also ask

How do you start jupyter notebook server without opening a web browser?

Step 1: Run Jupyter Notebook from remote machine In most cases, this is simply done via an ssh command. Once the console shows, type the following: remoteuser@remotehost: jupyter notebook --no-browser --port=XXXX # Note: Change XXXX to the port of your choice. Usually, the default is 8888.

How do I start Ipython notebook server?

If you want to access your notebook server remotely via a web browser, you can do the following. You can then start the notebook and access it later by pointing your browser to https://your.host.com:9999 with ipython notebook --profile=nbserver .

Can I use jupyter notebook without internet?

The Jupyter Notebook App is a server-client application that allows editing and running notebook documents via a web browser. The Jupyter Notebook App can be executed on a local desktop requiring no internet access (as described in this document) or can be installed on a remote server and accessed through the internet.


2 Answers

Is this what you want?

$ ipython notebook --no-browser 

Edit

Now you should use instead

$ jupyter notebook --no-browser 

Since

ipython notebook is deprecated and will be removed in future versions. You likely want to use jupyter notebook in the future

like image 54
Cyphase Avatar answered Sep 19 '22 22:09

Cyphase


If you don't want to type ipython notebook --no-browser all the time,

for ipython 4.0 with jupyter:

  1. generate config

    jupyter notebook --generate-config 

    it would create a file at some place like

    win: C:\Users\[YouUserName]\.jupyter\jupyter_notebook_config.py

    linux: ~/.jupyter/jupyter_notebook_config.py

  2. add c.NotebookApp.open_browser = False to this file.

All done!

like image 41
Mithril Avatar answered Sep 18 '22 22:09

Mithril