> For the complete documentation index, see [llms.txt](https://huang-jason.gitbook.io/python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://huang-jason.gitbook.io/python/jupyter-notebook.md).

# Jupyter Notebook

<https://github.com/jupyter/notebook/issues/284>

```
$ jupyter notebook --generate-config

// c.NotebookApp.tornado_settings = { 'headers': { 'Content-Security-Policy': "frame-ancestors 'self' http://localhost:3000/" } }
```

<https://github.com/JasonYCHuang/nb_conda>

```
$ conda create -y -n nb_conda python
$ conda install -y -n nb_conda --file requirements.txt -c conda-forge
$ source activate nb_conda
$ python setup.py develop

$ jupyter nbextension install nb_conda --py --sys-prefix --symlink
$ jupyter nbextension enable nb_conda --py --sys-prefix
$ jupyter serverextension enable nb_conda --py --sys-prefix


$ conda create --name notebook numpy flask
$ source activate notebook
$ conda install jupyter
```
