jupyter-notebook

How to specify the same token on jupyter-notebook server?


I always have to restart a jupyter-notebook server on reboot or failure and as expected it starts with a different token, but this ruins the link for my existing users. Is there a way to specify the same token everytime?

If not, what is the alternative?


Solution

  • RE: The question, "Is there a way to specify the same token everytime?"

    Start jupyter notebook as you normally do. That information is not in the question. So my answer and example is based on:

    1. Activate a conda environment
    2. Use a port number so users can add a link in their browser.
    3. Start jupyter notebook
    4. Copy the token
    5. Use the command line to start jupyter notebook.

    Example:

    jupyter notebook --port=9000 --NotebookApp.token='6c4bfd9ffd59618566557195d0f0a733f246545b8b118ca7'