blob: 357f2fc34d5e6937c60f407757b6c9dfc661b4fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Jupyter notebooks
## Run with GNU Guix
Jupyter notebooks can be installed in a profile
```
~/opt/guix-latest/bin/guix package -i jupyter python-pandas vim screen tree -p ~/opt/jupyter
source ~/opt/jupyter/etc/profile
jupyter notebook --notebook-dir=. --no-browser
```
or, even better, in a container
```
guix environment -C --network --ad-hoc jupyter python-pandas
jupyter notebook --notebook-dir=~/jupyter --no-browser --port=8989 --config=~/.jupyter.py
```
or, with a manifest
```
guix environment --container --network -m requirements.scm
jupyter notebook --notebook-dir=~/jupyter --no-browser --port=8989 --config=~/.jupyter.py
```
To set a password create one with
```python
from notebook.auth import passwd
passwd()
```
and paste that into the config file, e.g.
```
c.NotebookApp.password = u'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'
'argon2:$argon2id$v=19$m=10240,t=10,p=8$iq49+bKeCkueyBHo4jEpVQ$/fzhorq3xC4mM65OBgmJ/A'
```
You may need to generate that with
```
jupyter notebook --generate-config --config=~/.jupyter.py
```
## List of Jupyter CLI Options
=> https://jupyter-notebook.readthedocs.io/en/stable/config.html Jupyter Flags
|