ipython notebook in sage?

243 views
Skip to first unread message

William Stein

unread,
Sep 1, 2013, 12:39:46 PM9/1/13
to sage-devel, Fernando Perez, sage-notebook
Hi,

What do Sage developers think about us including the two dependencies
in Sage so that "sage -ipython notebook" just works?

* the Tornado Web Server (http://www.tornadoweb.org/en/stable/)
* zeromq and pyzmq

This will give people using Sage more UI options, and in the long run
encourage developers to improve Ipython's notebook to integrate better
with Sage (e.g., preparsing, 3d graphics, whatever). Also, it means
that people who download the Sage tarball to get a Python++
distribution, automatically get the ipython notebook too, without
having to "easy_install tornado", "easy_install pyzmq", cross fingers,
etc.

Tornado and zmq are also both really useful tools to have available to
Sage. I've used both a lot (though I don't use either in my current
work on https://cloud.sagemath.com), and can vouch for their quality
and potential usefulness. Tornado is particular nice in that it is a
easily the most straightforward-to-learn async Python networking/web
server, and having such a thing is often handy to solve problems.

I don't mean this to be a formal vote or claim that I'm about to do a
bunch of work to get these in. But if a bunch of people think this
is a good idea, maybe somebody will spring up and do the work, knowing
it would be greatly appreciated. Maybe a year from now there will be
a plethora of ways-to-use-sage-via-the-web, all included in Sage:

* the classical Flask-based sage notebook, with Samuel's ui rewrite
* Jason Grout's sage cell server -- for standalone use (probably
requiring either authentication or multiple accounts for security
reasons).
* IPython notebook
* small-install version of cloud.sagemath.com

-- William


--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

Andrey Novoseltsev

unread,
Sep 1, 2013, 2:48:50 PM9/1/13
to sage-n...@googlegroups.com, sage-devel, Fernando Perez
I think that would be great as in particular it will reduce sagecell dependencies that have to be handled by sagecell package at the moment or by the user installing extra optional packages. Having all UIs by default may also encourage features synchronization, e.g. making sure that interacts behave the same.

Andrey

William Stein

unread,
Sep 1, 2013, 2:53:05 PM9/1/13
to sage-notebook, sage-devel, Fernando Perez
That's a good point / idea.

Also there are significant difference in design philosophy,
optimizations, features, etc., between all four UI's, and it might be
nice to create a single page that compares and contrast them (with
some sort of table), so users can choose which to use.

William

>
> Andrey
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-notebook" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-noteboo...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-notebook.
> For more options, visit https://groups.google.com/groups/opt_out.

nil...@gmail.com

unread,
Sep 1, 2013, 5:22:51 PM9/1/13
to sage-...@googlegroups.com, Fernando Perez, sage-notebook
Am Sonntag, 1. September 2013 18:39:46 UTC+2 schrieb William:
Hi,

What do Sage developers think about us including the two dependencies
in Sage so that "sage -ipython notebook" just works?


First let me say that I'm very happy with the sage notebook although frequently using IPython nb for other stuff. I can't see any gain using ipynb, at least not for the moment. By the way I see other priorities: to have a stable cygwin/cygwin64 build for example, ridding the win community of the OVM (a nice toy but a lot of deficiencies :).

Thanks
Kurt

Jason Grout

unread,
Sep 2, 2013, 9:52:53 AM9/2/13
to sage-...@googlegroups.com, sage-n...@googlegroups.com
On 9/1/13 11:39 AM, William Stein wrote:
> What do Sage developers think about us including the two dependencies
> in Sage so that "sage -ipython notebook" just works?
>
> * the Tornado Web Server (http://www.tornadoweb.org/en/stable/)
> * zeromq and pyzmq
>
> This will give people using Sage more UI options, and in the long run
> encourage developers to improve Ipython's notebook to integrate better
> with Sage (e.g., preparsing, 3d graphics, whatever).

+1. And even with the IPython notebook, you can do:

%load_ext sage.misc.sage_extension

and get the Sage preparsing turned on, so it really would be like a Sage
environment.

Jason


Jean-Baptiste Priez

unread,
Apr 28, 2014, 5:03:23 PM4/28/14
to sage-...@googlegroups.com, sage-n...@googlegroups.com
Hello, 

I would like to know what is the new line which is equivalent to 

%load_ext sage.misc.sage_extension

with sage 6.2?

The ticket #16050 (I think...) moved some code so... 

Cheers,

Jean-Baptiste Priez

R. Andrew Ohana

unread,
Apr 28, 2014, 5:25:37 PM4/28/14
to sage-...@googlegroups.com
On Mon, Apr 28, 2014 at 2:03 PM, Jean-Baptiste Priez <eli...@gmail.com> wrote:
Hello, 

I would like to know what is the new line which is equivalent to 

%load_ext sage.misc.sage_extension

with sage 6.2?

%load_ext sage

should now work.
 

The ticket #16050 (I think...) moved some code so... 

Cheers,

Jean-Baptiste Priez

--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.



--
Andrew

Thierry

unread,
May 27, 2014, 12:31:50 PM5/27/14
to sage-...@googlegroups.com, Fernando Perez, sage-notebook
Hi,

On Sun, Sep 01, 2013 at 09:39:46AM -0700, William Stein wrote:
> What do Sage developers think about us including the two dependencies
> in Sage so that "sage -ipython notebook" just works?
>
> * the Tornado Web Server (http://www.tornadoweb.org/en/stable/)
> * zeromq and pyzmq

I am favorable to having those packages as standard ones. It should be
noticed that tornado is already standard, and both zeromq and pyzmq are
old-style spkg.

By the way, IPython notebook within Sage is now shipped in the live USB
(see http://sagedebianlive.metelu.net for a direct download until the
mirrors get refreshed).

Click on the Sage/Ipython icon and add

%load_ext sage

in the first cell.

Ciao,
Thierry

Reply all
Reply to author
Forward
0 new messages