nixos/home/prog/jupyter/jupyter_server_config.py
Evie Litherland-Smith 8312e0d328 Update nixpkgs, home-manager
Remove pass-audit for now as it's failing to build, to add back later

Move jupyter config into separate file since I don't need it on my
personal PC

Move home/config directory contents to home/prog since it's (currently
at least) all programming related things, attach to relevant files
2024-03-28 07:30:50 +00:00

18 lines
574 B
Python

import os
from pathlib import Path
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.open_browser = False
# Set password for remote access login
c.PasswordIdentityProvider.hashed_password = (
"sha1:005773a53a70:a5c53a779fa0e1498ada0f8fdb48ad1fef1257ff"
)
c.PasswordIdentityProvider.password_required = True
c.PasswordIdentityProvider.allow_password_change = False