예제 #1
0
def main():
    os.environ['JUPYTERLAB_DIR'] = os.path.join(sys.prefix, 'share', 'jupyter',
                                                'delux')
    labapp.LabApp.app_dir = os.environ['JUPYTERLAB_DIR']
    labapp.main()
예제 #2
0
# -*- 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())
예제 #3
0
#!/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))
예제 #4
0
from jupyterlab.labapp import main
import sys

sys.exit(main())
예제 #5
0
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()
예제 #6
0
파일: labapp.py 프로젝트: sanbales/cadlab
def main():
    patch_app_dir(labapp.LabApp)
    labapp.main()
예제 #7
0
def main():
    patch_app_dir(labapp.LabApp)
    patch_build_dir(labapp.LabBuildApp)
    return labapp.main()