-
-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install Jupyter kernel when --enable-editable is in use #33855
Comments
Author: Matthias Koeppe |
Commit: |
comment:5
The kernel might also be missing in the wheels. Best to redo the kernelspec generation/installation similar to https://github.com/ipython/ipykernel/blob/main/setup.py#L108 |
Changed author from Matthias Koeppe to Matthias Koeppe, ... |
comment:6
When building a wheel, the symlink |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed author from Matthias Koeppe, ... to Matthias Koeppe |
This comment has been minimized.
This comment has been minimized.
comment:13
Possibly related question: |
comment:14
Yes, that's the same issue |
comment:16
As you observe in #33739, this doesn't work if one simply uses pip to editable install sagelib. To also support this, I propose to run the kernelspec install as a custom |
comment:17
Yes, this sounds like a good approach. Do you want to push to the ticket? I'm working on something else right now |
comment:18
No, I sadly don't have time for this atm. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:24
Replying to @tobiasdiez:
Re-done as you suggested, works nicely. |
Reviewer: Tobias Diez |
comment:25
Thanks. Code looks good to me and it seems to work (tested using #33739). |
comment:26
Thanks! |
comment:28
Test merge with #33838 succeeds without conflict |
comment:29
That's great, are you aware of any other tickets that touches |
comment:30
You are asking for tickets to review next? #28925 |
Changed branch from u/mkoeppe/install_jupyter_kernel_when___enable_editable_is_in_use to |
When --enable-editable is in use, the Jupyter kernel sagemath is not being installed.
Workaround for users:
--enable-editable
first./sage -python -c 'from sage.repl.ipython_kernel.install import SageKernelSpec; SageKernelSpec.update()'
In this ticket, we fix it by adding a custom
develop
command.(In follow up ticket #30298, the jupyter kernel (but without the symlink
doc
-- which cannot and should not be stored in a wheel!) will also be added asdata_files
- and thus be available in all types of installations -setup.py install
, wheel-based, and editable)CC: @tobiasdiez @dimpase @kiwifb @antonio-rojas @egourgoulhon
Component: build
Author: Matthias Koeppe
Branch/Commit:
4473375
Reviewer: Tobias Diez
Issue created by migration from https://trac.sagemath.org/ticket/33855
The text was updated successfully, but these errors were encountered: