Search code examples
pythontornadojupyter-notebookjupyter

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: http://localhost:8888/my_notebook.

I've tried

$ ipython notebook --ip=localhost/my_notebook

which didn't work.

Can anyone please help?


Solution

  • 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.