#16996: IPython notebook with Sage Extensions
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.4
Component: interfaces | Resolution:
Keywords: | Merged in:
Authors: Volker Braun | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vbraun/sage_ipynb | 95a4ea418c3eae890dc0ae4c50da4420ee0b10ab
Dependencies: #16746 | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by slabbe):
* status: needs_review => needs_work
Comment:
1. The {{{sage -ipython notebook}}} works OK for me. But the command
{{{sage -notebook-ipy}}} is broken. There is a tab that opens in the
browser but it stays empty. In the command line, it says templates
{{{tree.html}}} and {{{error.html}}} and maybe others are missing :
{{{
$ sage -notebook-ipy
2014-09-30 23:29:19.288 [SageNotebookApp] Using existing profile dir:
u'/Users/slabbe/.sage/ipython-2.2.0/profile_default'
2014-09-30 23:29:19.302 [SageNotebookApp] Using MathJax from CDN:
https://cdn.mathjax.org/mathjax/latest/MathJax.js
2014-09-30 23:29:19.345 [SageNotebookApp] Serving notebooks from local
directory: /Users/slabbe/.sage/notebooks_ipy
2014-09-30 23:29:19.345 [SageNotebookApp] 0 active kernels
2014-09-30 23:29:19.345 [SageNotebookApp] The IPython Notebook is running
at: http://localhost:8888/
2014-09-30 23:29:19.345 [SageNotebookApp] Use Control-C to stop this
server and shut down all kernels (twice to skip confirmation).
2014-09-30 23:29:20.051 [tornado.application] ERROR | Uncaught exception
GET /tree (::1)
HTTPRequest(protocol='http', host='localhost:8888', method='GET',
uri='/tree', version='HTTP/1.1', remote_ip='::1', headers={'Connection':
'keep-alive', 'Accept-Language': 'fr-ca,fr;q=0.8,fr-fr;q=0.6,en-
us;q=0.4,en;q=0.2', 'Accept-Encoding': 'gzip, deflate', 'If-None-Match':
'"5a5567e3b37b9ccb8e61737610c32e684f6090d4"', 'Host': 'localhost:8888',
'Accept':
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-
Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:16.0)
Gecko/20100101 Firefox/16.0'})
Traceback (most recent call last):
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/tornado-3.1.1-py2.7.egg/tornado/web.py", line 1141, in
_when_complete
callback()
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/tornado-3.1.1-py2.7.egg/tornado/web.py", line 1162, in
_execute_method
self._when_complete(method(*self.path_args, **self.path_kwargs),
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/tornado-3.1.1-py2.7.egg/tornado/web.py", line 2297, in wrapper
return method(self, *args, **kwargs)
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/IPython/html/tree/handlers.py", line 77, in get
breadcrumbs=breadcrumbs
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/IPython/html/base/handlers.py", line 221, in render_template
template = self.get_template(name)
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/IPython/html/base/handlers.py", line 217, in get_template
return self.settings['jinja2_env'].get_template(name)
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/Jinja2-2.5.5-py2.7.egg/jinja2/environment.py", line 716, in
get_template
return self._load_template(name, self.make_globals(globals))
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/Jinja2-2.5.5-py2.7.egg/jinja2/environment.py", line 690, in
_load_template
template = self.loader.load(self, name, globals)
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/Jinja2-2.5.5-py2.7.egg/jinja2/loaders.py", line 115, in load
source, filename, uptodate = self.get_source(environment, name)
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/Jinja2-2.5.5-py2.7.egg/jinja2/loaders.py", line 180, in
get_source
raise TemplateNotFound(template)
TemplateNotFound: tree.html
2014-09-30 23:29:20.060 [tornado.application] ERROR | Uncaught exception
in write_error
Traceback (most recent call last):
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/tornado-3.1.1-py2.7.egg/tornado/web.py", line 794, in send_error
self.write_error(status_code, **kwargs)
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/tornado-3.1.1-py2.7.egg/tornado/web.py", line 827, in write_error
self.finish(self.get_error_html(status_code, **kwargs))
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/IPython/html/base/handlers.py", line 277, in get_error_html
html = self.render_template('error.html', **ns)
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/IPython/html/base/handlers.py", line 221, in render_template
template = self.get_template(name)
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/IPython/html/base/handlers.py", line 217, in get_template
return self.settings['jinja2_env'].get_template(name)
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/Jinja2-2.5.5-py2.7.egg/jinja2/environment.py", line 716, in
get_template
return self._load_template(name, self.make_globals(globals))
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/Jinja2-2.5.5-py2.7.egg/jinja2/environment.py", line 690, in
_load_template
template = self.loader.load(self, name, globals)
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/Jinja2-2.5.5-py2.7.egg/jinja2/loaders.py", line 115, in load
source, filename, uptodate = self.get_source(environment, name)
File "/Users/slabbe/Applications/sage-git/local/lib/python2.7/site-
packages/Jinja2-2.5.5-py2.7.egg/jinja2/loaders.py", line 180, in
get_source
raise TemplateNotFound(template)
TemplateNotFound: error.html
2014-09-30 23:29:20.063 [tornado.access] ERROR | {
"Accept-Language": "fr-ca,fr;q=0.8,fr-fr;q=0.6,en-us;q=0.4,en;q=0.2",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Accept":
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:16.0)
Gecko/20100101 Firefox/16.0",
"Host": "localhost:8888",
"If-None-Match": "\"5a5567e3b37b9ccb8e61737610c32e684f6090d4\""
}
2014-09-30 23:29:20.064 [tornado.access] ERROR | 500 GET /tree (::1)
16.67ms referer=None
}}}
2. When using the {{{sage -ipython notebook}}} which works for me. The
Download as > rst throws me the following error:
{{{
500 : Internal Server Error
The error was: nbconvert failed: template file "rst" could not be found
}}}
3. I do like {{{sage -ipynb}}}. I do not like {{{sage -notebook-ipy}}}
because the part {{{ipy}}} is not natural. I feel I will need to check the
doc of {{{sage -advanced}}} each time to confirm the name of the command.
If you want the prefix {{{notebook}}}, I would rather suggest :
{{{
sage -notebook-ipython
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16996#comment:16>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.