Skip to content

Implement Jupyter kernel #2756

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

Closed
wants to merge 14 commits into from

Conversation

Vipul-Cariappa
Copy link
Contributor

No description provided.


- name: Install Linux / macOS Conda Packages
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
shell: bash -e -l {0}
run: conda install bison=3.4 nodejs=18
run: conda install bison=3.4 nodejs=18 xeus xeus-zmq
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove these

@certik
Copy link
Contributor

certik commented Jul 6, 2024

In default build, do not build the xeus kernel. So you need to hide it behind ifdefs. Look at how LFortran does it.

Then at the CI, just add a new job, as you already did, and build it there. That's done.

The other CI jobs should work exactly as before, and since xeus is not installed, they won't be testing it.

@certik
Copy link
Contributor

certik commented Jul 6, 2024

It almost works. You can investigate the macOS failure. We need to update CI to use micromamba in a separate PR, which I am doing in #2758. Then we rebase this one.

@@ -7,7 +7,8 @@ dependencies:
- toml
- pytest
- jupyter
- xeus=1.0.1
- xeus=5.1.0
- xeus-zmq=3.0.0
- xtl
- nlohmann_json
- cppzmq
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migration to xeus 5 and above allows us to drop the dependency on xtl and cppzmq for all downstream projects (mostly kernels) so you have remove them and also we should pin nlohmann_json to 3.11.3 wherever possible

@Vipul-Cariappa Vipul-Cariappa mentioned this pull request Jul 8, 2024
@certik
Copy link
Contributor

certik commented Jul 8, 2024

Fixed in #2764.

@certik certik closed this Jul 8, 2024
@Vipul-Cariappa Vipul-Cariappa deleted the jupyter-kernel branch July 27, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants