see inline. On Mon, May 7, 2012 at 10:41 AM, Keshav Kini <keshav.k...@gmail.com> wrote:
> Kjetil brinchmann Halvorsen <kjetil1...@gmail.com> writes: > > Notebook() is not working: (I am calling this from within a shell in > emacs) > > And if you try it from, say, bash? I note that the code gives up trying > to find ports if it receives 10 or more keyboard interrupts - perhaps > something about the input stream from Emacs is confusing it? > Trying from a terminal emulator: sage: notebook() The notebook files are stored in: sage_notebook.sagenb ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line statement', (114, 0)) --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) /home/kjetil/.sage/<ipython console> in <module>() /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/notebook/notebook_object.pyc in __call__(self, *args, **kwds) 215 """ 216 def __call__(self, *args, **kwds): --> 217 return self.notebook(*args, **kwds) 218 219 notebook = run_notebook.notebook_twisted /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/notebook/run_notebook.pyc in notebook_twisted(self, directory, port, interface, address, port_tries, secure, reset, accounts, require_login, server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path, fork, quiet, subnets) 441 print "*" * 70 442 --> 443 port = find_next_available_port(interface, port, port_tries) 444 if open_viewer: 445 "Open viewer automatically isn't fully implemented. You have to manually open your web browser to the above URL." /home/kjetil/sage/sage-5.0.rc0/devel/sagenb/sagenb/misc/misc.pyc in find_next_available_port(interface, start, max_tries, verbose) 132 print "Port %s is already in use."%port 133 print "Trying next port..." --> 134 raise RuntimeError, "no available port." 135 136 RuntimeError: no available port. sage: That is, the same problem. Kjetil > > -Keshav > > ---- > Join us in #sagemath on irc.freenode.net ! > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- "If you want a picture of the future - imagine a boot stamping on the human face - forever." George Orwell (1984) -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org