def main(): os.environ['JUPYTERLAB_DIR'] = os.path.join(sys.prefix, 'share', 'jupyter', 'delux') labapp.LabApp.app_dir = os.environ['JUPYTERLAB_DIR'] labapp.main()
# -*- coding: utf-8 -*- import re import sys from jupyterlab.labapp import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
#!/home/ok97465/anaconda3/bin/python import re import sys import os import subprocess import webbrowser from jupyter_index import write_index_ipynb from notebook import notebookapp from jupyterlab.labapp import main if __name__ == '__main__': port = 9876 jupyter_server_list = list(notebookapp.list_running_servers()) write_index_ipynb(r'/home/ok97465/codepy/BlogSrcByJupyter') b_server = False for jupyter_server in jupyter_server_list: if (jupyter_server['port'] == port): webbrowser.open(jupyter_server['url'] + 'lab') b_server = True if b_server == False: os.chdir('/home/ok97465/codepy/BlogSrcByJupyter') sys.exit(main(port=port))
from jupyterlab.labapp import main import sys sys.exit(main())
def main(): os.environ['JUPYTERLAB_DIR'] = os.path.join( sys.prefix, 'share', 'jupyter', '{{ cookiecutter.project_slug }}') labapp.LabApp.app_dir = os.environ['JUPYTERLAB_DIR'] labapp.main()
def main(): patch_app_dir(labapp.LabApp) labapp.main()
def main(): patch_app_dir(labapp.LabApp) patch_build_dir(labapp.LabBuildApp) return labapp.main()