ipython notebook

169 views
Skip to first unread message

John Cremona

unread,
Oct 22, 2014, 11:55:19 AM10/22/14
to SAGE devel
I don't think that I have been paying attention. What is this
"ipython notenook" and is it part of Sage? How does it relate to the
existing notebook? How do I run it?

John

Volker Braun

unread,
Oct 22, 2014, 12:12:19 PM10/22/14
to sage-...@googlegroups.com
Its in 6.4.beta6. Run with "sage --notebook=ipython"

John Cremona

unread,
Oct 22, 2014, 12:16:18 PM10/22/14
to SAGE devel
On 22 October 2014 17:12, Volker Braun <vbrau...@gmail.com> wrote:
> Its in 6.4.beta6. Run with "sage --notebook=ipython"

Thanks!

John

>
>
> On Wednesday, October 22, 2014 4:55:19 PM UTC+1, John Cremona wrote:
>>
>> I don't think that I have been paying attention. What is this
>> "ipython notenook" and is it part of Sage? How does it relate to the
>> existing notebook? How do I run it?
>>
>> John
>
> --
> 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.

Jori Mantysalo

unread,
Oct 23, 2014, 2:57:46 AM10/23/14
to sage-...@googlegroups.com
On Wed, 22 Oct 2014, Volker Braun wrote:

> Its in 6.4.beta6. Run with "sage --notebook=ipython"

It said that pyzmq is missing. Then sage -i pyzmq said that zmq.h was not
found. (And last "yum whatprovides 'zmq.h'" found no matches...). A bug in
pyzmq?

(Might be, again, something wrong with my setup. Don't use much time for
this.)

--
Jori Mäntysalo

Volker Braun

unread,
Oct 23, 2014, 4:40:56 AM10/23/14
to sage-...@googlegroups.com
Did you run "make" after pulling the git branch? The zeromq and pyzmq packages are new and need to be compiled.

Jori Mantysalo

unread,
Oct 23, 2014, 5:55:23 AM10/23/14
to sage-...@googlegroups.com
On Thu, 23 Oct 2014, Volker Braun wrote:

> Did you run "make" after pulling the git branch? The zeromq and pyzmq packages are new and need to be compiled.

I did not. But no help from that:

running configure
Configure: Autodetecting ZMQ settings...
Custom ZMQ dir: /home/jm58660/sage/local
************************************************
creating build/temp.linux-x86_64-2.7/scratch/tmp
cc -c /tmp/timer_createratiAV.c -o
build/temp.linux-x86_64-2.7/scratch/tmp/timer_createratiAV.o
cc build/temp.linux-x86_64-2.7/scratch/tmp/timer_createratiAV.o -o
build/temp.linux-x86_64-2.7/scratch/a.out
build/temp.linux-x86_64-2.7/scratch/tmp/timer_createratiAV.o: In function
`main':
timer_createratiAV.c:(.text+0x15): undefined reference to `timer_create'
collect2: error: ld returned 1 exit status
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC
-I/home/jm58660/sage/local/include -Izmq/utils -Izmq/backend/cython
-Izmq/devices -c build/temp.linux-x86_64-2.7/scratch/vers.c -o
build/temp.linux-x86_64-2.7/scratch/vers.o
build/temp.linux-x86_64-2.7/scratch/vers.c:4:17: fatal error: zmq.h: No
such file or directory
#include "zmq.h"
^
compilation terminated.

error: command 'gcc' failed with exit status 1

Fatal: Falling back on bundled libzmq, but setup.cfg has explicitly
prohibited building the libzmq extension.

--
Jori Mäntysalo

Volker Braun

unread,
Oct 23, 2014, 6:22:34 AM10/23/14
to sage-...@googlegroups.com
Ok, its a dependency bug: http://trac.sagemath.org/17202 

Workaround is to run

sage -f zeromq
sage -f pyzmq
sage -f ipython

Jori Mantysalo

unread,
Oct 23, 2014, 6:42:58 AM10/23/14
to sage-...@googlegroups.com
On Thu, 23 Oct 2014, Volker Braun wrote:

> Workaround is to run
>
> sage -f zeromqsage -f pyzmq
> sage -f ipython

[Errno 104] Connection reset by peer

I.e. sagemath.org stalled. Mirrors of those somewhere?

--
Jori Mäntysalo

Volker Braun

unread,
Oct 23, 2014, 6:52:29 AM10/23/14
to sage-...@googlegroups.com
I think the mirroring is currently broken either due to the website relayout or the boxen move.

Jori Mantysalo

unread,
Oct 23, 2014, 8:20:57 AM10/23/14
to sage-...@googlegroups.com
I got ipython to run. Looks nice.

How is account management done with it? Ldap integration?

--
Jori Mäntysalo

Volker Braun

unread,
Oct 23, 2014, 8:53:13 AM10/23/14
to sage-...@googlegroups.com
Currently it is single user only.

Fernando Perez

unread,
Oct 23, 2014, 6:02:29 PM10/23/14
to sage-devel

On Thu, Oct 23, 2014 at 5:53 AM, Volker Braun <vbrau...@gmail.com> wrote:
Currently it is single user only.

the multiuser support is a separate project that wraps the single user component:


Single-user application and multiuser authentication/management are not bundled into one tool as they are in Sage.

Cheers

f


--
Fernando Perez (@fperez_org; http://fperez.org)
fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
fernando.perez-at-berkeley: contact me here for any direct mail

Volker Braun

unread,
Oct 23, 2014, 6:09:15 PM10/23/14
to sage-...@googlegroups.com
Is the first release out yet? In August you said it would be October/November...

Fernando Perez

unread,
Oct 23, 2014, 6:26:24 PM10/23/14
to sage-devel
Yup, we're a little behind... :)  Trying to get 3.0 out before the end of the year. The JupyterHub tool is more admin-oriented, so we don't have a release date for it yet: people are using it for now straight out of github, and until we feel that we have an API and model we really like, it will likely continue that way.

--
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.

Jori Mantysalo

unread,
Oct 24, 2014, 3:17:09 AM10/24/14
to sage-devel
On Thu, 23 Oct 2014, Fernando Perez wrote:

> Yup, we're a little behind... :)  Trying to get 3.0 out before the end
> of the year. The JupyterHub tool is more admin-oriented, so we don't
> have a release date for it yet: people are using it for now straight out
> of github, and until we feel that we have an API and model we really
> like, it will likely continue that way.

So, for an Sage server admin this means that there is no horry to look at
IPython yet? And on the other hand, IPython will come, and there is no
meaning to make big enhancements to sagenb?

For now sagenb works quite well for user viewpoint. As an admin I see
missing features, like really deleting a given user include data, and
deleting accounts that have no local password and ldap does not found use
anymore. Also main page for documentation on sagemath.org does not contain
"Admin's Guide" parallel to "Developer's Guide".

--
Jori Mäntysalo

Samuel Lelievre

unread,
Oct 24, 2014, 7:07:18 AM10/24/14
to sage-...@googlegroups.com
Volker Braun wrote:
I think the mirroring is currently broken either due to the website relayout or the boxen move.

Things seem to be back in order now.
 

kcrisman

unread,
Oct 24, 2014, 8:57:30 AM10/24/14
to sage-...@googlegroups.com, sage-n...@googlegroups.com
> Yup, we're a little behind... :)  Trying to get 3.0 out before the end
> of the year. The JupyterHub tool is more admin-oriented, so we don't
> have a release date for it yet: people are using it for now straight out
> of github, and until we feel that we have an API and model we really
> like, it will likely continue that way.

So, for an Sage server admin this means that there is no horry to look at
IPython yet? And on the other hand, IPython will come, and there is no
meaning to make big enhancements to sagenb?


I think the lack of progress on sagenb is much more due to the *simultaneous* existence of the (for now, beta) Jupyter and SMC projects.  Nearly all effort that would have gone to sagenb has gone in those directions - and I'm not criticizing those projects, just recognizing reality.

 
For 
now sagenb works quite well for user viewpoint. As an admin I see
missing features, like really deleting a given user include data, and
deleting accounts that have no local password and ldap does not found use
anymore. Also main page for documentation on sagemath.org does not contain
"Admin's Guide" parallel to "Developer's Guide".


Please do open issues at the sagenb github site, that would be quite helpful.  Also, it's really interesting to me how many admins have these truly amazing fixes that they haven't shared with the rest of the community because sagenb development has been moribund.  A few of us are trying to fix that, though.

- kcrisman

William Stein

unread,
Oct 24, 2014, 9:51:55 AM10/24/14
to sage-notebook, sage-devel
On Fri, Oct 24, 2014 at 5:57 AM, kcrisman <kcri...@gmail.com> wrote:
>> > Yup, we're a little behind... :) Trying to get 3.0 out before the end
>> > of the year. The JupyterHub tool is more admin-oriented, so we don't
>> > have a release date for it yet: people are using it for now straight out
>> > of github, and until we feel that we have an API and model we really
>> > like, it will likely continue that way.
>>
>> So, for an Sage server admin this means that there is no horry to look at
>> IPython yet? And on the other hand, IPython will come, and there is no
>> meaning to make big enhancements to sagenb?
>>
>
> I think the lack of progress on sagenb is much more due to the
> *simultaneous* existence of the (for now, beta) Jupyter and SMC projects.
> Nearly all effort that would have gone to sagenb has gone in those
> directions - and I'm not criticizing those projects, just recognizing
> reality.

In addition note that there was little [1] progress on sagenb for
years before Jupyter=IPython and SMC existed. This might be because
people who learn about modern web development realize that sagenb was
written/rewritten mostly in 2006-2009 [2], and that web development
technology (both frontend and backend) has progressed dramatically
since then. They might thus not be motivated to work on sagenb.

[1] There was a rewrite of the frontend UI of sagenb, which wasn't
quite released... The last serious work I can remember on sagenb was
Mike Hansen switching it to use flask and that was quite a while ago.

[2] Not only that, but sagenb doesn't even use a database, so it feels
more like it was from the 1990s... (my fault.)

>> For
>> now sagenb works quite well for user viewpoint. As an admin I see
>> missing features, like really deleting a given user include data, and
>> deleting accounts that have no local password and ldap does not found use
>> anymore. Also main page for documentation on sagemath.org does not contain
>> "Admin's Guide" parallel to "Developer's Guide".
>>
>
> Please do open issues at the sagenb github site, that would be quite
> helpful. Also, it's really interesting to me how many admins have these
> truly amazing fixes that they haven't shared with the rest of the community
> because sagenb development has been moribund. A few of us are trying to fix
> that, though.




>
> - kcrisman
>
> --
> 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/d/optout.



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

kcrisman

unread,
Oct 24, 2014, 10:47:54 AM10/24/14
to sage-...@googlegroups.com, sage-n...@googlegroups.com
> I think the lack of progress on sagenb is much more due to the
> *simultaneous* existence of the (for now, beta) Jupyter and SMC projects.
> Nearly all effort that would have gone to sagenb has gone in those
> directions - and I'm not criticizing those projects, just recognizing
> reality.

In addition note that there was little [1] progress on sagenb for
years before Jupyter=IPython and SMC existed.  This might be because  

"Year" maybe.  There was no major work, I guess, but Keshav and Jason G. both did quite a bit in 2012, including switching to git and MathJax etc.  But progress really slowed down once Sage cell and SMC took off (I forgot Sage cell earlier).  It probably didn't help that just when it had finally moved from devel/sagenb to code.google.com, then it was moved to github.
 
people who learn about modern web development realize that sagenb was
written/rewritten mostly in 2006-2009 [2], and that web development
technology (both frontend and backend) has progressed dramatically
since then.  They might thus not be motivated to work on sagenb.


That would be outsiders.  I'm talking about people already actively using Sage and sagenb, who would have a motivation for this independent of that.  As many have said, most programming is maintenance...
 
[1] There was a rewrite of the frontend UI of sagenb, which wasn't
quite released...  The last serious work I can remember on sagenb was
Mike Hansen switching it to use flask and that was quite a while ago.


I thought that was also Rado et al., but anyway.
 
[2] Not only that, but sagenb doesn't even use a database, so it feels
more like it was from the 1990s...  (my fault.)


Yeah, the more I look at the code the more I have a feeling that accounts for a lot of its slowness with many users.  But don't worry; sagenb is nowhere NEAR the oldest technology used on our behalf on a daily basis, I'm sure, even if we're not aware of it... e.g. http://jobs.monster.com/v-it-q-cobol-programmer-jobs.aspx

Thierry Dumont

unread,
Nov 2, 2014, 3:35:25 AM11/2/14
to sage-...@googlegroups.com
Le 23/10/2014 10:40, Volker Braun a écrit :
> Did you run "make" after pulling the git branch? The zeromq and pyzmq
> packages are new and need to be compiled.
>
>
> On Thursday, October 23, 2014 7:57:46 AM UTC+1, Jori Mantysalo wrote:
>
> On Wed, 22 Oct 2014, Volker Braun wrote:
>
> > Its in 6.4.beta6. Run with "sage --notebook=ipython"
>

I have tried this ("sage --notebook=ipython") with 6.4.rc0: this works
very nicely, and this is impressive!

I have a question, may be a beginners question: is it possible to use an
existing profile ? I would like to make slides, using the "rise"
profile; so I tried:
sage --notebook=ipython --profile=rise
which gives nothing (it gives the same thing as
"sage --notebook=ipython").

I have verified that: ipython profile=rise works (as explained in
http://nbviewer.ipython.org/github/damianavila/live_reveal/blob/master/Install_RJSE.ipynb).


Yours,

t.
tdumont.vcf

Samuel Lelievre

unread,
Nov 2, 2014, 5:36:33 PM11/2/14
to sage-...@googlegroups.com

2014-11-02 08:35:25 UTC, tdumont:
what about

    sage -ipython notebook --profile=rise

Thierry Dumont

unread,
Nov 2, 2014, 5:58:40 PM11/2/14
to sage-...@googlegroups.com
tdumont.vcf
Reply all
Reply to author
Forward
0 new messages