Add root_dir and checkpoint_dir to jupyter config
root_dir finds home directory, checkpoint_dir is a single, top level .ipynb_checkpoints directory
This commit is contained in:
parent
db2ebfe91f
commit
9d2ece1132
|
@ -1,6 +1,11 @@
|
||||||
# c.ServerApp.port = 6702
|
import os
|
||||||
# c.ServerApp.root_dir = '/home/elitherl/'
|
from pathlib import Path
|
||||||
# c.FileCheckpoints.checkpoint_dir = c.ServerApp.root_dir + '.ipynb_checkpoints'
|
|
||||||
|
root_dir = Path(os.getenv("HOME", Path("~/").expanduser().resolve()))
|
||||||
|
|
||||||
|
c.ServerApp.port = 8888
|
||||||
|
c.ServerApp.root_dir = str(root_dir)
|
||||||
|
c.FileCheckpoints.checkpoint_dir = str(root_dir / ".ipynb_checkpoints")
|
||||||
c.ServerApp.use_redirect_file = False
|
c.ServerApp.use_redirect_file = False
|
||||||
c.ServerApp.open_browser = False
|
c.ServerApp.open_browser = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue