sage vs jupyter notebooks

811 views
Skip to first unread message

Vincent Delecroix

unread,
May 5, 2016, 8:46:10 AM5/5/16
to sage-devel
Hello,

I made yesterday at Sage days 73 a presentation using the Jupyter
notebook. I gathered some of the desirable improvements needed before
the transition

* tab completion with jokers not supported (i.e. "*prime<TAB>")

* search_doc is broken (raw html code appears)

* the markdown for the cells seems very poor: how do we do an array?

* is it possible to copy/paste a bunch of cells between worksheets

* export is broken on my Sage install (in whatever format)

* nor animate neither animate.show does show something

* magic %cython cells broken

From now on, I don't know what is the best way to proceed. Open a
ticket and share it with Jupyter dev?

Best
Vincent

kcrisman

unread,
May 5, 2016, 8:56:43 AM5/5/16
to sage-devel
See also https://groups.google.com/forum/#!topic/sage-support/E4jCF1mDRJE and perhaps comb through https://groups.google.com/forum/#!topic/sage-devel/8erxWppKxXM in case there are things you missed there (notably different interact syntaxes, I guess?).  Thanks for starting this process.

William Stein

unread,
May 5, 2016, 12:02:01 PM5/5/16
to sage-devel
On Thu, May 5, 2016 at 5:46 AM, Vincent Delecroix
Thanks for pointing these out. In case you're curious the first two
also don't work in SMC Sage worksheets either, so I added them to my
todo list. The others all work.

- William

>
> --
> 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 https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.



--
William (http://wstein.org)

Volker Braun

unread,
May 5, 2016, 1:53:31 PM5/5/16
to sage-devel
Some of your complaints are just how the commandline currently works...  


On Thursday, May 5, 2016 at 2:46:10 PM UTC+2, vdelecroix wrote:
* tab completion with jokers not supported (i.e. "*prime<TAB>")

There is wildcard search:

sage: *le_prim*?  [ENTER]
next_probable_prime

 
* the markdown for the cells seems very poor: how do we do an array?

Set the cell type to "markdown" and enter

First Header  | Second Header
------------- | -------------
Content Cell  | Content Cell
Content Cell  | Content Cell

 
* is it possible to copy/paste a bunch of cells between worksheets

Press ESC for command mode (blue left margin) and select multiple cells with shift+cursor up/down. Then copy&paste affects multiple cells.

 
* export is broken on my Sage install (in whatever format)

Do you have pandoc installed?

Volker Braun

unread,
May 5, 2016, 2:56:32 PM5/5/16
to sage-devel
A %%cython cell magic for commandline and Jupyter notebook is now at
http://trac.sagemath.org/ticket/20562 (needs review)

Jason Grout

unread,
May 5, 2016, 8:40:22 PM5/5/16
to sage-devel
Thanks Volker. In general, Jupyter uses github-flavored markdown, which supports tables and many other things: https://help.github.com/articles/organizing-information-with-tables/, for example.

Jason


On Thu, May 5, 2016 at 2:56 PM Volker Braun <vbrau...@gmail.com> wrote:
A %%cython cell magic for commandline and Jupyter notebook is now at
http://trac.sagemath.org/ticket/20562 (needs review)

--

Eric Gourgoulhon

unread,
May 6, 2016, 4:12:42 PM5/6/16
to sage-devel
Hi Vincent,

I would add to your list:

* when exporting to pdf, the LaTeX format of the output cells is lost (cf. https://groups.google.com/d/msg/sage-support/Pt_r9Ct-31w/MWkRz1DVBwAJ)

* the menu of JSMol 3D plots is not accessible

Best wishes,

Eric.

Vincent Delecroix

unread,
May 14, 2016, 12:44:13 PM5/14/16
to sage-...@googlegroups.com
Most of the issues I ran into are fixed (by lack of knowledge for
markdown arrays and by Volker's work for Cython cells).

Though

>> * export is broken on my Sage install (in whatever format)
>>
>
> Do you have pandoc installed?

I do have pandoc installed and it is not the problem. The Jupyter
notebook seems to have an implicit dependency, namely the module
entrypoints.

After "sage -pip install entrypoints" everything was fine.

Vincent
Reply all
Reply to author
Forward
0 new messages