コード例 #1
0
def notebook():
    """
    Run an IPython notebook on an AWS server
    """
    from IPython.lib.security import passwd
    command = "ipython notebook --ip=0.0.0.0  --certfile=mycert.pem --NotebookApp.password={} --no-browser".format(
        passwd())
    print command
    run(command)
コード例 #2
0
ファイル: fabfile.py プロジェクト: zhang405744522/TensorFace
def notebook_server():
    """
    Run IPython notebook on an AWS server
    run("openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.key -out mycert.pem")
    c = get_config()
    c.NotebookApp.open_browser = False
    c.NotebookApp.ip = '0.0.0.0'
    c.NotebookApp.port = 8888
    c.NotebookApp.certfile = u'/home/ubuntu/mycert.pem'
    c.NotebookApp.enable_mathjax = False
    c.NotebookApp.password = u'{}'
    :return:
    """
    from IPython.lib.security import passwd
    sudo(
        "/home/ubuntu/anaconda/bin/ipython notebook --ip=0.0.0.0  --NotebookApp.password={} --no-browser"
        .format(passwd()))  #--certfile=mycert.pem
コード例 #3
0
 def _admin_password_hash_default(self):
     return passwd(self.admin_password)
コード例 #4
0
 def _student_password_hash_default(self):
     return passwd(self.student_password)
コード例 #5
0
def notebook():
    """
    Run IPython notebook on an AWS server
    run("openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.key -out mycert.pem")
    c = get_config()
    c.NotebookApp.open_browser = False
    c.NotebookApp.ip = '0.0.0.0'
    c.NotebookApp.port = 8888
    c.NotebookApp.certfile = u'/home/ubuntu/mycert.pem'
    c.NotebookApp.enable_mathjax = False
    c.NotebookApp.password = u'{}'
    #--certfile=mycert.pem
    :return:
    """
    from IPython.lib.security import passwd

    command = "ipython notebook --ip=0.0.0.0  --NotebookApp.password={} --no-browser".format(passwd())
    print command
    run(command)
コード例 #6
0
ファイル: fabfile.py プロジェクト: CBIR-LL/VisualSearchServer
def notebook():
    """
    Run an IPython notebook on an AWS server
    """
    from IPython.lib.security import passwd
    command = "ipython notebook --ip=0.0.0.0  --certfile=mycert.pem --NotebookApp.password={} --no-browser".format(passwd())
    print command
    run(command)