atoti-jupyterlab3 extension not seen by jupyterlab when installed via poetry #788
Closed
printhellohetal
started this conversation in
General
Replies: 2 comments
-
I had this issue since 0.7.4 and raised internal ticket. Check out this issue as well: python-poetry/poetry#1615 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the investigation Hetal. Your screenshot shows that the Atoti 0.8.3 will work around that limitation to make its JupyterLab extension installable with Poetry. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR: It seems like there is an issue for those who use poetry with the after-installation copy for atoti-jupyterlab3 to the appropriate jupyter/labextensions folder. Maybe?
In my escapades upgrading to Atoti v0.8.0 (or Atoti v0.8.1) I notice the atoti-jupyterlab3 extension is claimed to be installed by poetry, but not visible in my JupyterLab setting. In doing some digging, I noticed when using poetry, it doesn’t seem to copy the relevant folder to my <POETRY_CACHE_DIR>/virtualenvs//share/jupyter/labextensions
So I ran two experiments, both new environments.
Experiment 1: poetry-alone
New poetry environment, everything installed via poetry.
Result: no Atoti jupyterlab extension (see below screenshot), no <POETRY_CACHE_DIR>/virtualenvs//share/jupyter/labextensions/atoti-jupyterlab3
if you want to try for yourself, use something like:
run through all the prompts
I got this, no lovely "A" icon on the LHS.
Experiment 2: poetry-and-pip
New poetry environment, everything but atoti-jupyterlab3 installed via poetry, atoti-jupyterlab3 installed in that environment via pip
Result: Atoti jupyterlab extension enabled (see below screenshot), and <POETRY_CACHE_DIR>/virtualenvs//share/jupyter/labextensions/atoti-jupyterlab3 exists
if you want to try for yourself, use something like:
run through all the prompts, don’t add atoti-jupyterlab3
I got this, with the lovely "A" on the LHS
And here are both <POETRY_CACHE_DIR>/virtualenvs//share/jupyter/labextensions/ folders
Falling down a rabbit hole to see if it is a poetry related issue or an atoti related issue, it seems like there is a known issue with poetry not doing the same thing as pip wrt JupyterLab extensions? At least, that is what is suggested by the following two git issues:
jupyterlab/jupyterlab-git#452
python-poetry/poetry#1615
Which is curious to me, because I don't recall using pip to install the jupyterlab plugin (at least, I don’t think I did-I feel like I would have written out a very long saga about it then if I had to do all of this…)
Also, this specific comment suggests some labextensions do successfully install via poetry… so, headscratcher there:
jupyterlab/jupyterlab-git#452 (comment)
And here is more digital ink spilled regarding after-installation copy not occurring automagically
python-poetry/poetry#4013
So… what gives?
And if the answer is this works for everyone but me (and a prospective that uses poetry that is also struggling with getting the jupyterlab extension to show), cool.
But if not, does this warrant a statement in the installation guide?
Or a guide on the Community side?
Or both?
Or some other change?
Beta Was this translation helpful? Give feedback.
All reactions