First time here? Check out the FAQ!

Ask Your Question
2

installing notebook server

asked 14 years ago

czsan gravatar image

updated 14 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 14 years ago

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!

Preview: (hide)
link

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 ( 14 years ago )

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

kcrisman gravatar imagekcrisman ( 14 years ago )

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

Jason Grout gravatar imageJason Grout ( 14 years ago )

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 ( 14 years ago )

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 ( 14 years ago )

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: 14 years ago

Seen: 1,284 times

Last updated: Feb 22 '11