-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Set JUPYTER_DATA_DIR etc. during docbuild #33650
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
This could be done, for example, in |
comment:3
Dima had the same issue with |
comment:4
Well, But for the build process we should do better. |
Author: Matthias Koeppe |
Commit: |
New commits:
|
comment:7
In addition, I suppose in |
comment:8
I've opened #33651 for this. |
This comment has been minimized.
This comment has been minimized.
comment:10
Why not |
comment:11
When unset, it uses the default directories, which can contain the bad user configuration. |
comment:12
Replying to @mkoeppe:
I see. Then it looks good to me. Now I am simulating the failing situation to see that the branch works as expected. Meanwhile let me note that #33320 (which supersedes #33507) circumvents this bug since it does not run jupyter to build the live doc. |
comment:13
In After
After
|
comment:14
This
worked. But as I see it, this is still not a safe solution. It does prevent from using default directories, but still A safe solution would be to add the real path to our kernel at the front... |
comment:15
Replying to @kwankyu:
Thus
This is rather cumbersome though... |
comment:16
Perhaps we should do versioning of Jupyter kernels, so that we can specify the right one to use by name only. |
comment:17
Replying to @dimpase:
+1 |
New commits:
|
Changed branch from u/mkoeppe/set_jupyter_config_dir_during_docbuild to public/33650 |
comment:19
Versioned kernel works well. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:21
This is not getting better with versioning because it does not distinguish kernels from different installations of Sage. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:24
Replying to @kwankyu:
Where would that directory be coming from? |
comment:25
Replying to @mkoeppe:
I don't know... I don't have it anymore since I deleted the |
comment:26
I confirm that the current branch works well. I am positive. |
Reviewer: Kwankyu Lee, ... |
This comment has been minimized.
This comment has been minimized.
Changed reviewer from Kwankyu Lee, ... to Kwankyu Lee |
comment:30
Thank you! |
Changed branch from public/33650 to |
comment:32
On NixOS we build documentation as part of the build, and |
Changed commit from |
comment:33
Replying to @collares:
For the record in sage-on-gentoo where I split sage_setup, sage, sage_docbuild and sage-doc in 9.5 and beyond I patch the makefile for build the documentation. But it also relies on sage to be already installed and in place on the system. I think we are at a point where ditching |
comment:35
Replying to @kiwifb:
+1, that's the way. |
After #33507, the jupyter kernel
sagemath
gets invoked during the docbuild.This can lead to a new class of errors as seen in #33507 comment:75 and #33507 comment:86
We fix it by setting
JUPYTER_DATA_DIR
andJUPYTER_PATH
during the docbuild so that a random broken user configuration of Jupyter in~/.jupyter
does not break the docbuild.See https://docs.jupyter.org/en/latest/use/jupyter-directories.html#configuration-files
CC: @kwankyu @dimpase @collares
Component: documentation
Author: Matthias Koeppe
Branch:
614822c
Reviewer: Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/33650
The text was updated successfully, but these errors were encountered: