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)
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
def _admin_password_hash_default(self): return passwd(self.admin_password)
def _student_password_hash_default(self): return passwd(self.student_password)
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)
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)