Package Details: python-ipympl 0.7.0-5

Git Clone URL: (read-only, click to copy)
Package Base: python-ipympl
Description: Matplotlib Jupyter Extension
Upstream URL:
Licenses: BSD
Submitter: flipflop97
Maintainer: deep_thought
Last Packager: deep_thought
Votes: 8
Popularity: 0.37
First Submitted: 2019-01-02 15:51
Last Updated: 2021-04-06 11:57

Latest Comments

1 2 3 4 5 Next › Last »

leuko commented on 2021-04-06 19:05

Also thanks again mdeff.

and now I copied from you deep42thought, and we are even ;)

mdeff commented on 2021-04-06 11:52

No problem, thanks for maintaining the PKGBUILD. :)

Another thing I noticed, the symlinks should link from jupyter-matplotlib not ipympl, i.e.:

ln -s /usr/lib/python${py_ver}/site-packages/ipympl/labextension "${prebuilt_extension_dir_lab}/jupyter-matplotlib"

(Don't ask me why the python package and the jupyter extension don't have the same name...)

In your cleanup, I believe you could also remove mkdir -p "${pkgdir}/usr/lib/python${py_ver}/site-packages/jupyterlab".

deep42thought commented on 2021-04-06 06:53

@mdeff: sry for the broken updates. I was in a little rush, I simply copied the lines from leuko's PKGBUILD - which is broken in the same way - and cleaned some (as I thought) unnecessary lines, which turned out to be important. :-)

I hope, I didn't mess up anything, again ...

mdeff commented on 2021-04-05 22:08

Thanks for updating @deep_thought!

But now I get the following error:

error: failed to commit transaction (conflicting files)
python-ipympl: /usr/share/jupyter/lab exists in filesystem

I think the following should be removed from the PKGBUILD:

mkdir -p "${pkgdir}/usr/lib/python${py_ver}/site-packages/jupyterlab"
mkdir -p "${pkgdir}/usr/share/jupyter"
ln -s "../../lib/python${py_ver}/site-packages/jupyterlab" "${pkgdir}/usr/share/jupyter/lab"

Also, the symlinks shouldn't link to the pkgdir, i.e., they should be ln -s /usr/lib/python${py_ver}/site-packages/ipympl/{lab,nb}extension.

leuko commented on 2021-04-05 19:53

There are AFAIK multiple ways to deploy an extension. One way is to manually use jupyter labextension install and other is to deploy into labextensions folder. Maybe deep_thought chose the first way to leave the choice to users.

Anyway, I did not know about the latter one. I built it into my package now (python-ipycanvas-git PKGBUILD) and saved many minutes caused by labextension install, thanks for pointing this out dear @mdeff!

mdeff commented on 2021-04-04 00:57

In jupyterlab 3, extensions don't need to be enabled after being installed. But this extension isn't available after installation. I think it's because it doesn't install files in /usr/share/jupyter/labextensions. jupyterlab-widgets does it.

deep_thought commented on 2021-03-24 09:40

@tinux: python-jupyter_packaging 0.8.0-2 has the missing python-deprecation dependency added. (This is, why I removed the dependency from python-ipympl, again). I think, bug #70142 should be fixed by that, too.

tinux commented on 2021-03-24 09:36

@deep_thought Thank you for fixing it! I could install it now. Unfortunately, the same issue (python-jupyter_packaging 0.7.12 -> 0.8.0) seems to apply also to jupyterlab, which I cannot start anymore. This was already reported (#70142).

In any case, thank you for your work!! I'm using this every day.

deep_thought commented on 2021-03-24 07:43

this seems to happen since python-jupyter_packaging 0.7.12 -> 0.8.0

deep_thought commented on 2021-03-24 04:49

fascinating - now I get the same error. I'll look into this ...