Zichen Wang Zichen Wang - 10 months ago 32
Python Question

How to run IPython notebook server with a specified URL route

I want to run a IPython notebook server on the a predefined URL like:


I've tried

$ ipython notebook --ip=localhost/my_notebook

which didn't work.

Can anyone please help?


You can set the configurable value from command line like this:

ipython notebook --NotebookApp.base_url='my_notebook'

Alternatively, you can set it in a config file for your profile. You can read more about it here.