import os import stat import subprocess c = get_config() # noqa: F821 c.ServerApp.ip = "0.0.0.0" c.ServerApp.port = 8888 c.ServerApp.open_browser = False c.ServerApp.root_dir = "/home/jovyan/notebooks" # to output both image/svg+xml and application/pdf plot formats in the notebook file c.InlineBackend.figure_formats = {"png", "jpeg", "svg", "pdf"} # https://github.com/jupyter/notebook/issues/3130 c.FileContentsManager.delete_to_trash = False # Change default umask for all subprocesses of the notebook server if set in # the environment if "NB_UMASK" in os.environ: os.umask(int(os.environ["NB_UMASK"], 8))