-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Cython is broken in conda build #39250
Comments
Seems to be that the issue is That is, try |
I've dug deep into this issue, and the solution is not going to be that simple. |
maybe @tobiasdiez knows what's going on here |
No real idea but there were problems with gdlib's pkconfig file (at least on windows). Honestly, I think we should deprecate cython and fortan compilation. Sage is not really in the business to provide an IDE. Proper cython support (i.e here properly searching for gdlib) would require to call meson or a similar build system - numpy is indeed generating a meson file in the background and then call meson/ninja to build it for its fortan support. Except for very quick prototypes, just building your cython code with little meson file should give a better developer experience in my opinion. |
(Forgive me for GitHub's terrible UI about closing this issue. I have no intention to close this issue until Cython works again.) I disagree about deprecating Cython and Fortran compilation. Sagemath is dedicated for scientific computing, and speed matters. I ran across this issue (of Cython compilation) when I was trying to run a sample Jupyter notebook from SageManifolds about rendering the picture of a black hole. It's quite computation-heavy, and you can see at cell number 38 is where Cython gets invoked the first time, to speed up a crucial rendering function by x10000. This very cool Sagemath showcase wouldn't be possible without Cython. |
This is natively supported by cython: https://cython.readthedocs.io/en/latest/src/userguide/source_files_and_compilation.html#compiling-with-a-jupyter-notebook The only advantage of Sage's |
perhaps Sage can borrow this setup from numpy? |
Maybe try Just a band-aid at the moment, but better than not being able to use it at all. |
Potentially related? #39275 |
Steps To Reproduce
mamba create -n sagemath sage python=3.11.11
jupyter lab
orsage -n jupyterlab
(while sage conda env is active).Expected Behavior
Cython code gets compiled.
Actual Behavior
Additional Information
This bug has been reported by someone else here.
Environment
Checklist
The text was updated successfully, but these errors were encountered: