Skip to content

Commit a1fb317

Browse files
authored
Merge pull request #3346 from whosford/notebook-public-server-docs-change
Add more information for where jupyter_notebook_config.py is located
2 parents b66a60d + e67d66e commit a1fb317

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

docs/source/public_server.rst

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,30 @@ This document describes how you can
4747
Securing a notebook server
4848
--------------------------
4949

50-
You can protect your notebook server with a simple single password by
51-
configuring the :attr:`NotebookApp.password` setting in
52-
:file:`jupyter_notebook_config.py`.
50+
You can protect your notebook server with a simple single password. As of notebook
51+
5.0 this can be done automatically. To set up a password manually you can configure the
52+
:attr:`NotebookApp.password` setting in :file:`jupyter_notebook_config.py`.
53+
5354

5455
Prerequisite: A notebook configuration file
5556
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5657

5758
Check to see if you have a notebook configuration file,
5859
:file:`jupyter_notebook_config.py`. The default location for this file
59-
is your Jupyter folder in your home directory, ``~/.jupyter``.
60+
is your Jupyter folder located in your home directory:
61+
62+
- Windows: :file:`C:\\Users\\USERNAME\\.jupyter\\jupyter_notebook_config.py`
63+
- OS X: :file:`/Users/USERNAME/.jupyter/jupyter_notebook_config.py`
64+
- Linux: :file:`/home/USERNAME/.jupyter/jupyter_notebook_config.py`
6065

61-
If you don't already have one, create a config file for the notebook
62-
using the following command::
66+
If you don't already have a Jupyter folder, or if your Jupyter folder doesn't contain
67+
a notebook configuration file, run the following command::
6368

6469
$ jupyter notebook --generate-config
6570

71+
This command will create the Jupyter folder if necessary, and create notebook
72+
configuration file, :file:`jupyter_notebook_config.py`, in this folder.
73+
6674

6775
Automatic Password setup
6876
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -132,9 +140,9 @@ directory, ``~/.jupyter``, e.g.::
132140
c.NotebookApp.password = u'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'
133141

134142
Automatic password setup will store the hash in ``jupyter_notebook_config.json``
135-
while this method store in in ``jupyter_notebook_config.py``. The ``.json``
143+
while this method stores the hash in ``jupyter_notebook_config.py``. The ``.json``
136144
configuration options take precedence over the ``.py`` one, thus the manual
137-
password may not take effect if the Json file as a password set.
145+
password may not take effect if the Json file has a password set.
138146

139147

140148
Using SSL for encrypted communication

0 commit comments

Comments
 (0)