jupyter notebook vs jupyterlabs

157 views
Skip to first unread message

Reimundo Heluani

unread,
Oct 24, 2020, 3:42:02 PM10/24/20
to sage-...@googlegroups.com
Dear all, I apologize that his may be out of place, but I started preparing
the sage days talk on jupyter and I find myself on a completely new
terri(fying)tory. I have a bunch of questions and I'd appreciate if you can
point me in the right direction to read.

1. I remember in this list there were a few calls to help on the migration
from jupyter notebook to jupyterlab, but I can't seem to surf those
e-mails. Has this effectively happened? This is probably the only
meaningful question, I want to rule out whether I am trying to write the
slides in the wrong environment first.

2. I am running on arch, and I have installed both jupyter notebook and
jupyterlab. When running sage with `sage -n jupyter --ip=127.0.0.1` there's
a trace with `ModuleNotFoundError: No module named 'jupyterlab'` and right
after the notebook runs fine, but with jupyter notebook, not jupyter lab

3. If I run jupyterlab with `jupyter lab` it does not recognize the sage
kernel (I run sage out of my local git repo). I do not know how to make it
visible to the system jupyterlab.

4. I don't particularly care for one or the other, I would just want to
construct a readable slideshow that more or less resembles a normal beamer
slideshow. Mathjax seems to be missing some Tex Fonts as I get

```
404 GET /nbextensions/mathjax/fonts/HTML-CSS/TeX/otf/MathJax_Script-Regular.otf (127.0.0.1) 62.44ms referer=http://127.0.0.1:8888/notebooks/Talk.ipynb
```
Should I install some extension to get these fonts.

5. The same with theorem-like definitions. I installed the extension
latex_envs following instructions in

https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/latex_envs/README.html

But I can't get it to render a definition properly. I suspect this may be a
mixing of using a distro package manager for jupyter vs pip install for the
extension itself. What's the right way of checking which extensions are
running?

6. Finally, I find the workflow horrible: I make the notebook a slideshow,
then mark cells as slides, mode markdown, then type some math in them. If I
hit <Shit>-<Enter> to render them they render one way, then if I want to
run the slides with

`jupyter nbconvert Talk.ipynb --to slides --post serve`

They render in a different way. In particular headings and plain html code
like <p>text</p>

Is this the right workflow to prepare slides?

Thanks

R.

signature.asc

Reimundo Heluani

unread,
Oct 24, 2020, 3:47:01 PM10/24/20
to 'Reimundo Heluani' via sage-devel
I just realized that running on the Python kernel the definition environment
renders correctly, so I guess this extension does not work with the sage
kernel.

R

>
>6. Finally, I find the workflow horrible: I make the notebook a
>slideshow, then mark cells as slides, mode markdown, then type some
>math in them. If I hit <Shit>-<Enter> to render them they render
>one way, then if I want to run the slides with
>
> `jupyter nbconvert Talk.ipynb --to slides --post serve`
>
> They render in a different way. In particular headings and plain
>html code like <p>text</p>
>
> Is this the right workflow to prepare slides?
>
>Thanks
>
>R.
>
>--
>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 view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/20201024194152.GA207099%40vertex.


signature.asc

Dima Pasechnik

unread,
Oct 24, 2020, 3:51:08 PM10/24/20
to sage-devel, Samuel Lelièvre
Sage has not (yet) switched to jupyterlab, although there were various
ways to use jupyterlab with Sage posted here by Samuel, iirc.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/20201024194652.GB207099%40vertex.

Paul Masson

unread,
Oct 24, 2020, 4:49:00 PM10/24/20
to sage-devel

Reimundo Heluani

unread,
Oct 24, 2020, 4:54:46 PM10/24/20
to sage-...@googlegroups.com
On Oct 24, Paul Masson wrote:
>Relevant discussion: [1]https://groups.google.com/forum/?fromgroups#!topic/
>sage-devel/HRiG-Wfni18
>
Ahh thanks, in the third message in that discussion there were all the answers
I needed it seems.

R.
> MathJax_Script-Regular.otf (127.0.0.1) 62.44ms referer=[2]http://
> 127.0.0.1:8888/notebooks/Talk.ipynb
> > > ```
> > > Should I install some extension to get these fonts.
> > >
> > >5. The same with theorem-like definitions. I installed the extension
> > >latex_envs following instructions in
> > >
> > > [3]https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/
> > >To view this discussion on the web visit [4]https://groups.google.com/d/
> msgid/sage-devel/20201024194152.GA207099%40vertex.
> >
> >
> > --
> > 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 view this discussion on the web visit [5]https://groups.google.com/d/
> msgid/sage-devel/20201024194652.GB207099%40vertex.
>
>--
>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 [6]sage-devel+...@googlegroups.com.
>To view this discussion on the web visit [7]https://groups.google.com/d/msgid/
>sage-devel/3eeaaf22-efa2-4570-8f55-342939b61510n%40googlegroups.com.
>
>References:
>
>[1] https://groups.google.com/forum/?fromgroups#!topic/sage-devel/HRiG-Wfni18
>[2] http://127.0.0.1:8888/notebooks/Talk.ipynb
>[3] https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/latex_envs/README.html
>[4] https://groups.google.com/d/msgid/sage-devel/20201024194152.GA207099%40vertex
>[5] https://groups.google.com/d/msgid/sage-devel/20201024194652.GB207099%40vertex
>[6] mailto:sage-devel+...@googlegroups.com
>[7] https://groups.google.com/d/msgid/sage-devel/3eeaaf22-efa2-4570-8f55-342939b61510n%40googlegroups.com?utm_medium=email&utm_source=footer

signature.asc
Reply all
Reply to author
Forward
0 new messages