Hi,
there are some dependencies that you've to install before installing the flask version of sagenb. Here are the instructions I've got from Basu(thanks!) to install sagenb.
How to get working with sagenb:
1. First download and install sage devel (or release version) from here for example: http://jambu.spms.ntu.edu.sg/sage/
2. Untar the file, and then cd sage-<release version> then type "make". This will take 3-4hours depending on the speed of your machine.
3. You have a working sage ready now. You may back up the directory sage-<release version> so that you can go back to it if anything goes wrong.
4. We will now upgrade the notebook to the flask notebook. Go to ticket 11080: http://trac.sagemath.org/sage_trac/ticket/11080 Install everything except openssl and the ticket from 12899. Just copy-paste the commands on to your terminal.
5. Now, go to SAGE_ROOT/devel and clone the github repository for sagenb. First fork sagemath/sagenb in github and then clone your own sagenb repository into a directory called sagenb-github (for example).
# fork sagemath/sagenb in github git clone git://github.com/<your username>/sagenb sagenb-github
6. You will now have a directory SAGE_ROOT/devel/sagenb-github. Symlink this directory to SAGE_ROOT/devel/sagenb:
cd SAGE_ROOT/devel rm -f sagenb ln -s ./sagenb-github ./sagenb
7. cd sagenb ../../sage -python setup.py develop
8. Start the sage notebook and check that you are actually running twistd-12.0.0. ../../sage -n
9. You can also add other sagenb repos like jasongrout/sagenb and sagemath/sagenb
Jason
Hi,
there are some dependencies that you've to install before installing the flask version of sagenb. Here are the instructions I've got from Basu(thanks!) to install sagenb.
How to get working with sagenb:
1. First download and install sage devel (or release version) from here for example: http://jambu.spms.ntu.edu.sg/sage/
2. Untar the file, and then cd sage-<release version> then type "make". This will take 3-4hours depending on the speed of your machine.
3. You have a working sage ready now. You may back up the directory sage-<release version> so that you can go back to it if anything goes wrong.
4. We will now upgrade the notebook to the flask notebook. Go to ticket 11080: http://trac.sagemath.org/sage_trac/ticket/11080 Install everything except openssl and the ticket from 12899. Just copy-paste the commands on to your terminal.
Thanks when I run notebook() it works great. When I run nb.notebook(directory="mynotebook") I get this though
/home/sam/Applications/sage-5.0/<ipython console> in <module>()/home/sam/Applications/sage-5.0/devel/sagenb-samuela/sagenb/notebook/notebook_object.pyc in __call__(self, *args, **kwds)208 """209 def __call__(self, *args, **kwds):--> 210 return self.notebook(*args, **kwds)211212 notebook = run_notebook.notebook_run/home/sam/Applications/sage-5.0/devel/sagenb-samuela/sagenb/notebook/run_notebook.pyc in notebook_run(self, directory, port, interface, port_tries, secure, reset, accounts, openid, server_pool, ulimit, timeout, automatic_login, start_path, fork, quiet, server, profile, subnets, require_login, open_viewer, address)556 os.chdir(cwd)557 if e == 256:--> 558 raise socket.error559560 def get_admin_passwd():error:I think I can start developing with just notebook() but is there a way to get nb.notebook(directory="...") to work?Thanks,Samuel
1. Do you get this same error if you run your notebook like this:sage -n directory=mynotebook?
2. What if you append a sagenb at the end?sage -n directory=mynotebook.sagenb
or, from inside sage promptnotebook(directory="mynotebook.sagenb")
3. Is there any difference if you run it as notebook(directory="...") instead of nb.notebook(directory="...")?