Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

notebook with directory

I tried to use another directory for notebook, but got the folowing :

sage: notebook("Chebyshev") The notebook files are stored in: Chebyshev.sagenb

Please choose a new password for the Sage Notebook 'admin' user. Do _not_ choose a stupid password, since anybody who could guess your password and connect to your machine could access or delete your files. NOTE: Only the hash of the password you type is stored by Sage. You can change your password by typing notebook(reset=True).

Enter new password: Retype new password: Please login to the notebook with the username 'admin' and the above password. User admin created with the password you specified.



  • *
  • Open your web browser to http://localhost:8080 *
  • *

Executing twistd --pidfile="Chebyshev/sagenb.pid" -ny "Chebyshev.sagenb/twistedconf.tac" 2013-03-01 11:32:10+0100 [-] Log opened. 2013-03-01 11:32:10+0100 [-] twistd 12.3.0 (/usr/lib/sagemath/local/bin/python 2.7.3) starting up. 2013-03-01 11:32:10+0100 [-] reactor class: twisted.internet.epollreactor.EPollReactor. 2013-03-01 11:32:10+0100 [-] Traceback (most recent call last): 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/bin/twistd", line 5, in <module> 2013-03-01 11:32:10+0100 [-] pkg_resources.run_script('Twisted==12.3.0', 'twistd') 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/distribute-0.6.16-py2.7.egg/pkg_resources.py", line 468, in run_script 2013-03-01 11:32:10+0100 [-] self.require(requires)[0].run_script(script_name, ns) 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/distribute-0.6.16-py2.7.egg/pkg_resources.py", line 1201, in run_script 2013-03-01 11:32:10+0100 [-] execfile(script_filename, namespace, namespace) 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/EGG-INFO/scripts/twistd", line 14, in <module> 2013-03-01 11:32:10+0100 [-] run() 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/scripts/twistd.py", line 27, in run 2013-03-01 11:32:10+0100 [-] app.run(runApp, ServerOptions) 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 652, in run 2013-03-01 11:32:10+0100 [-] runApp(config) 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/scripts/twistd.py", line 23, in runApp 2013-03-01 11:32:10+0100 [-] _SomeApplicationRunner(config).run() 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 390, in run 2013-03-01 11:32:10+0100 [-] self.postApplication() 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/scripts/_twistd_unix.py", line 230, in postApplication 2013-03-01 11:32:10+0100 [-] self.startApplication(self.application) 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/scripts/_twistd_unix.py", line 338, in startApplication 2013-03-01 11:32:10+0100 [-] self.config['pidfile']) 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/scripts/_twistd_unix.py", line 293, in setupEnvironment 2013-03-01 11:32:10+0100 [-] f = open(pidfile,'wb')

2013-03-01 11:32:10+0100 [-] IOError: [Errno 2] No such file or directory: '/home/czirbusz/Chebyshev/sagenb.pid'

error Traceback (most recent call last) <ipython-input-2-516277bbef0d> in <module>() ----> 1 notebook("Chebyshev")

/usr/lib/sagemath/devel/sagenb/sagenb/notebook/notebook_object.pyc in __call__(self, args, *kwds) 221 """ 222 def __call__(self, args, *kwds): --> 223 return self.notebook(args, *kwds) 224 225 notebook = run_notebook.notebook_run

/usr/lib/sagemath/devel/sagenb/sagenb/notebook/run_notebook.pyc in notebook_run(self, directory, port, interface, port_tries, secure, reset, accounts, openid, server_pool, ulimit, timeout, upload, automatic_login, start_path, fork, quiet, server, profile, subnets, require_login, open_viewer, address) 626 os.chdir(cwd) 627 if e == 256: --> 628 raise socket.error 629 630 def get_admin_passwd():

error:

(I use Ubunt 12.10)

click to hide/show revision 2
No.2 Revision

notebook with directory

I tried to use another directory for notebook, but got the folowing :

sage: notebook("Chebyshev")
The notebook files are stored in: Chebyshev.sagenb

Chebyshev.sagenb Please choose a new password for the Sage Notebook 'admin' user. Do _not_ choose a stupid password, since anybody who could guess your password and connect to your machine could access or delete your files. NOTE: Only the hash of the password you type is stored by Sage. You can change your password by typing notebook(reset=True).

notebook(reset=True). Enter new password: Retype new password: Please login to the notebook with the username 'admin' and the above password. User admin created with the password you specified.



  • *
  • specified. ********************************************************************** ************************************************** * * * Open your web browser to http://localhost:8080 *
  • *

* * * ************************************************** Executing twistd --pidfile="Chebyshev/sagenb.pid" -ny "Chebyshev.sagenb/twistedconf.tac" 2013-03-01 11:32:10+0100 [-] Log opened. 2013-03-01 11:32:10+0100 [-] twistd 12.3.0 (/usr/lib/sagemath/local/bin/python 2.7.3) starting up. 2013-03-01 11:32:10+0100 [-] reactor class: twisted.internet.epollreactor.EPollReactor. 2013-03-01 11:32:10+0100 [-] Traceback (most recent call last): 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/bin/twistd", line 5, in <module> 2013-03-01 11:32:10+0100 [-] pkg_resources.run_script('Twisted==12.3.0', 'twistd') 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/distribute-0.6.16-py2.7.egg/pkg_resources.py", line 468, in run_script 2013-03-01 11:32:10+0100 [-] self.require(requires)[0].run_script(script_name, ns) 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/distribute-0.6.16-py2.7.egg/pkg_resources.py", line 1201, in run_script 2013-03-01 11:32:10+0100 [-] execfile(script_filename, namespace, namespace) 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/EGG-INFO/scripts/twistd", line 14, in <module> 2013-03-01 11:32:10+0100 [-] run() 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/scripts/twistd.py", line 27, in run 2013-03-01 11:32:10+0100 [-] app.run(runApp, ServerOptions) 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 652, in run 2013-03-01 11:32:10+0100 [-] runApp(config) 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/scripts/twistd.py", line 23, in runApp 2013-03-01 11:32:10+0100 [-] _SomeApplicationRunner(config).run() 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/application/app.py", line 390, in run 2013-03-01 11:32:10+0100 [-] self.postApplication() 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/scripts/_twistd_unix.py", line 230, in postApplication 2013-03-01 11:32:10+0100 [-] self.startApplication(self.application) 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/scripts/_twistd_unix.py", line 338, in startApplication 2013-03-01 11:32:10+0100 [-] self.config['pidfile']) 2013-03-01 11:32:10+0100 [-] File "/usr/lib/sagemath/local/lib/python2.7/site-packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/scripts/_twistd_unix.py", line 293, in setupEnvironment 2013-03-01 11:32:10+0100 [-] f = open(pidfile,'wb')

open(pidfile,'wb') 2013-03-01 11:32:10+0100 [-] IOError: [Errno 2] No such file or directory: '/home/czirbusz/Chebyshev/sagenb.pid'

'/home/czirbusz/Chebyshev/sagenb.pid' --------------------------------------------------------------------------- error Traceback (most recent call last) <ipython-input-2-516277bbef0d> in <module>() ----> 1 notebook("Chebyshev")

notebook("Chebyshev") /usr/lib/sagemath/devel/sagenb/sagenb/notebook/notebook_object.pyc in __call__(self, args, *kwds) *args, **kwds) 221 """ 222 def __call__(self, args, *kwds): *args, **kwds): --> 223 return self.notebook(args, *kwds) self.notebook(*args, **kwds) 224 225 notebook = run_notebook.notebook_run

run_notebook.notebook_run /usr/lib/sagemath/devel/sagenb/sagenb/notebook/run_notebook.pyc in notebook_run(self, directory, port, interface, port_tries, secure, reset, accounts, openid, server_pool, ulimit, timeout, upload, automatic_login, start_path, fork, quiet, server, profile, subnets, require_login, open_viewer, address) 626 os.chdir(cwd) 627 if e == 256: --> 628 raise socket.error 629 630 def get_admin_passwd():

error:

get_admin_passwd(): error:

(I use Ubunt 12.10)