-
Notifications
You must be signed in to change notification settings - Fork 216
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
cadabra jupyter kernel #4185
Comments
Jupyter kernel build instructions for Cadabra are at https://github.com/kpeeters/cadabra2/blob/master/JUPYTER.rst . Please ask if you get stuck (this hasn't had a lot of real world exposure). |
Helloo @kpeeters ... I've finally had time to look into this. I understand this depends on the anaconda setup and well, I didn't take the time to follow this in detail. It's also bad to have manual work for something like that (hard to fix later, etc.) However, did you ever look into creating a feedstock for conda-forge? I think this shouldn't be too hard, and then I (and many others) could just install all this as a package and just have to take care of the jupyter kernel file. Ref: conda forge doc |
Eventually that's probably going to happen, but at the moment I simply don't have enough time to get that sorted. Will ping you if we ever get there. |
@haraldschilly There is now an experimental conda package for the cadabra jupyter kernel, which you can install with I had quite a battle with conda dependencies so I may well have done something silly, but it installs fine on a clean miniconda installation, as far as I can see. If you'd rather wait until this is in conda-forge I understand, but that will probably still take a while. |
@kpeeters, is there a way to install both the regular |
@isuruf do you mean the |
There are some features disabled like, I want to package |
Try packing sepately first. Last time I tried, the gtkmm in conda was in a very sorry state, essentially useless. Hence I def'd out things which are not needed for the kernel, just to get it to build. Again, you don't gain much (or anything at all) by using conda for |
I've got an experimental package.
|
You should be able to just rip those Can you show me your |
And that finds glibmm at the stage where the CMakeLists.txt runs By the way, does it really make sense to build the jupyter kernel into the same package? Usually you want one of the two: either you work with the jupyter interface, or you work with the native interface. Making jupyter a requirement of the native interface pulls in a lot of extra unused packages. |
Yes. Your recipe didn't have glibmm in
Yes, ideally I would like to see 3 packages.
But the cmake file doesn't allow anything like that. Next best thing is to have it all together instead of 2 packages that conflict with each other. |
You can do it like that if you decide which elements to pick from the installation, depending on which sub-package you are building. I think conda allows you to build different packages by simply picking stuff from the installation directories, but I may be wrong there. I think that it is possible to remove the |
If it makes your life easier to make me merge those changes into master, and/or do a proper tagged release, let me know. Would be nice to have a proper conda package in conda-forge. Thanks for your help! |
Yes, please. That'd make it easier for me. Two tests fail on the conda package. Those are tracked at https://github.com/conda-forge/cadabra2-feedstock/issues You can now do I have a question. Does |
cadabra2-jupyter-kernel only needs the |
I have pushed some changes to master which make the build process produce all binaries even when Can you try this one, and let me know if you want any other changes to make the conda-forge files as clean as possible? I will then do a 2.3.0 release and upload it as an asset so you can rely on the sha256 too. Leave those two self-tests for now, I will need to look into that but am a bit short on time at the moment. It won't make a difference for the vast majority of users. |
@isuruf, is there any update on this? If you want me to make any further changes, please do let me know. |
@kpeeters, if I build both the gtk notebook and the jupyter kernel in the same build, then the gtk notebook crashes. Not entirely sure what the reason is. If I build just the gtk notebook, it works fine. |
@isuruf, ah, yes, you mentioned that. I'll have a look tomorrow, I think I know what is happening. |
I have pushed a fix for this to github master. If it does the trick for you too, then I'll release 2.4.0 so you can refer to something stable. Let me know. |
For some reason, when I build on my machine with a clean miniconda install, doing
Can you check this? I built the thing package using a |
Found it: you need |
One more: are you able to extend this so it builds on macOS too? Getting windows support would be even better (in principle it all builds and works, but I can well imagine that not all those dependencies are available in conda for windows yet). |
Yes, we already have a |
I have given it a shot on windows but there is a long list of packages which are not available in conda for windows (mostly gtkmm and friends, but also a few others which need work/transitioning, like gmp and libuuid). So Linux and macOS for now. |
Yes, latest master works for me. Here's my recipe now, conda-forge/cadabra2-feedstock#7. Comments and suggestions welcome. |
Given that the conda-forge package is now live, is there any chance of getting the cadabra kernel installed on cocalc? Thanks! |
see kpeeters/cadabra2#125 (comment)
how to setup cadabra jupyter?
The text was updated successfully, but these errors were encountered: