Ask Your Question
2

installing notebook server

asked 2011-02-18 09:53:23 +0100

czsan gravatar image

updated 2011-02-22 09:50:26 +0100

kcrisman gravatar image

Is there a coherent documentation about installing sage as notebook server?

Update: putting things from comments about specific error message this user found.

In this script

# by Dan Drake on wiki of Sage 
nbopts = {} # listen on port nbopts['port'] = '8000' # listen on all addresses 
nbopts['address'] = 'public IP' # use https, not http 
nbopts['secure'] = True # don't open a viewer 
nbopts['open_viewer'] = False # use this directory for nb files; must writeable by the nb? users
nbopts['directory'] = '/home/sageadm/sagenbfiles' # at most 500 MB memory, 100 MB files, 100 processes for nb? users 
nbopts['ulimit'] = '-v 500000 -f 100000 -u 100' # time or idel session after two hours
nbopts['timeout'] = 7200 # we can create new accounts 
#nbopts['accounts'] = True # a munkalapok 
# nbopts['server_pool'] = ['sagenb%s@localhost' % n for n in [0--9] ] 
nbopts['reset'] = True # Go ! 
notebook(**nbopts) 
Password changed for user 'admin'. Traceback (most recent call last): File "start_notebok.py", line 37, in <module> notebook(**nbopts) File "/usr/local/sage-4.6.1/devel/sagenb/sagenb/notebook/notebook_object.py", line 217, in __call__ return self.notebook(*args, **kwds) File "/usr/local/sage-4.6.1/devel/sagenb/sagenb/notebook/run_notebook.py", line 402, in notebook_twisted port = find_next_available_port(interface, port, port_tries) File "/usr/local/sage-4.6.1/devel/sagenb/sagenb/misc/misc.py", line 134, in find_next_available_port raise RuntimeError, "no available port." RuntimeError: no available port.

And if I use sage without this script, then http://localhost:8001/?startup_token=a1251d171024265d88245c40588a10ff: No such file or directory

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-02-18 10:24:29 +0100

kcrisman gravatar image

Your question is somewhat vague. Here are some possible answers.

  • If you are interested in just using it as a server in a technical fashion, that happens immediately if you do notebook() in the command line! Or with sage -n; you are now using the server.
  • If you are asking about documentation for server options, do notebook? and there is a lot of documentation about it there.
  • If you are asking about a public server for others to use and some of the networking details, here and here are some possible instructions for you that others have found helpful.

Good luck!

edit flag offensive delete link more

Comments

Oh,excuse me, I want install a public server. I read these. But the following error appears sytematically : no available port. I think, the firewall of the campus have a good time.

czsan gravatar imageczsan ( 2011-02-18 10:40:05 +0100 )edit

That's certainly possible. Or that your local IP is not the 'outside' IP. Good luck!

kcrisman gravatar imagekcrisman ( 2011-02-18 11:24:09 +0100 )edit

Can you describe exactly where the "no available port" error occurs?

Jason Grout gravatar imageJason Grout ( 2011-02-19 13:31:20 +0100 )edit

In this script # by Dan Drake on wiki of Sage nbopts = {} # listen on port nbopts['port'] = '8000' # listen on all addresses nbopts['address'] = 'public IP' # use https, not http nbopts['secure'] = True # don't open a viewer nbopts['open_viewer'] = False # use this directory for nb files; must writeable by the nb? users nbopts['directory'] = '/home/sageadm/sagenbfiles' # at most 500 MB memory, 100 MB files, 100 processes for nb? users nbopts['ulimit'] = '-v 500000 -f 100000 -u 100' # time or idel session after two hours nbopts['timeout'] = 7200 # we can create new accounts #nbopts['accounts'] = True # a munkalapok # nbopts['server_pool'] = ['sagenb%s@localhost' % n for n in [0--9] ] nbopts['reset'] = True # Go ! notebook(**nbopts)

czsan gravatar imageczsan ( 2011-02-22 06:47:41 +0100 )edit

Password changed for user 'admin'. Traceback (most recent call last): File "start_notebok.py", line 37, in <module> notebook(**nbopts) File "/usr/local/sage-4.6.1/devel/sagenb/sagenb/notebook/notebook_object.py", line 217, in __call__ return self.notebook(*args, **kwds) File "/usr/local/sage-4.6.1/devel/sagenb/sagenb/notebook/run_notebook.py", line 402, in notebook_twisted port = find_next_available_port(interface, port, port_tries) File "/usr/local/sage-4.6.1/devel/sagenb/sagenb/misc/misc.py", line 134, in find_next_available_port raise RuntimeError, "no available port." RuntimeError: no available port.

czsan gravatar imageczsan ( 2011-02-22 08:59:48 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-02-18 09:53:23 +0100

Seen: 1,275 times

Last updated: Feb 22 '11