Ask Your Question

ramanath's profile - activity

2015-10-22 21:30:57 +0100 received badge  Famous Question (source)
2015-06-27 12:41:13 +0100 received badge  Self-Learner (source)
2015-06-27 12:41:13 +0100 received badge  Teacher (source)
2014-11-14 20:52:16 +0100 received badge  Notable Question (source)
2013-09-19 04:11:02 +0100 received badge  Popular Question (source)
2012-05-05 16:03:32 +0100 answered a question Cannot access notebook Mac OSX Lion

It works if I start sage from command line as

./sage -c "notebook(interface='localhost', directory='./sage_notebook.sagenb',port=8000)"

I found the answer in an earlier thread (Jason grout, ctennenh) that I had missed (modulo tweaking it a bit).

thanks!

-Ram

2012-05-05 14:57:52 +0100 asked a question Cannot access notebook Mac OSX Lion

I downloaded sage-4.8-OSX-64bit-10.6-x86_64-Darwin-app.p0.dmg to my Mac OSX 10.7.3 (lion). I can start Sage from the terminal and do command line calculations, but when I say notebook() it gives me an error (traceback below). Same thing when I tried with the non-app version. It used to work fine when I was on Snow Leopard!

Traceback:

sage: notebook()
---------------------------------------------------------------------------
EOFError                                  Traceback (most recent call last)

/Users/ramanath/.sage/<ipython console> in <module>()

/Applications/sage/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

/Applications/sage/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)
    200         print '*' * 70
    201 
--> 202     nb = notebook.load_notebook(directory)
    203 
    204     directory = nb._dir

/Applications/sage/devel/sagenb/sagenb/notebook/notebook.pyc in load_notebook(dir, interface, port, secure)
   1798 
   1799     dir = make_path_relative(dir)
-> 1800     nb = Notebook(dir)
   1801     nb.interface = interface
   1802     nb.port = port

/Applications/sage/devel/sagenb/sagenb/notebook/notebook.pyc in __init__(self, dir)
     86         # Now set the configuration, loaded from the datastore.
     87         try:
---> 88             self.__conf = S.load_server_conf()
     89         except IOError:
     90             # Worksheet has never been saved before, so the server conf doesn't exist.

/Applications/sage/devel/sagenb/sagenb/storage/filesystem_storage.pyc in load_server_conf(self)
    181     
    182     def load_server_conf(self):
--> 183         return self._basic_to_server_conf(self._load('conf.pickle'))
    184     
    185     def save_server_conf(self, server_conf):

/Applications/sage/devel/sagenb/sagenb/storage/filesystem_storage.pyc in _load(self, filename)
    132     #########################################################################
    133     def _load(self, filename):
--> 134         return cPickle.load(open(self._abspath(filename)))
    135 
    136     def _save(self, obj, filename, ):

EOFError: 
sage: