Skip to content

Conversation

@zhelih
Copy link
Collaborator

@zhelih zhelih commented Aug 14, 2025

Hi,

This Pull Request provides changes required to use this project with OCaml 5.2.0 and newer up to OCaml 5.3.0.

It includes ideas and changes from other PRs: #199 #207 and addresses issue #202

The reason why versions before 5.2.0 not support is due to changes in AST and function handling.
Please review and let me know if there are any questions or comments.

Thanks!

@ygrek
Copy link
Collaborator

ygrek commented Aug 14, 2025

ftr integration tests are known to fail, to be fixed, but the kernel actually works, including new OCaml 5 features (effects, domains)

@zhelih
Copy link
Collaborator Author

zhelih commented Aug 14, 2025

ftr integration tests are known to fail, to be fixed, but the kernel actually works, including new OCaml 5 features (effects, domains)

From my side, integration test notebooks work correctly when running from the Jupyter Lab (web). I do not have the proper command line setup (yet) to finish that testing. However, for the Web users there should be no problem (including ppx).

I will report when I have more on this.

@akabe
Copy link
Owner

akabe commented Aug 25, 2025

@zhelih
Very sorry for late.

Could you restrict ocaml-versions in ci.yaml and other yaml files to 5.2.0 only?
https://github.com/akabe/ocaml-jupyter/blob/master/.github/workflows/ci.yaml#L17-L22
https://github.com/akabe/ocaml-jupyter/blob/master/.github/workflows/gh-pages.yaml#L20
https://github.com/akabe/ocaml-jupyter/blob/master/.github/workflows/release.yaml#L13

It seems your patch includes code supporting v4.x.x. I think they can be removed.

@ygrek Thank you for reply!

@zhelih
Copy link
Collaborator Author

zhelih commented Aug 26, 2025

There is a plan to remove obsolete code in a separate PR, unless you would recommend otherwise.

@akabe
Copy link
Owner

akabe commented Aug 26, 2025

@zhelih

Thank you for the restriction of ocaml versions.

The CI is failing due to Python 2 installation, but I don’t think we need to support it. It would be helpful if you could remove the following entry. Sorry again for the trouble.

There is a plan to remove obsolete code in a separate PR, unless you would recommend otherwise.

Sounds good to me. I will release a new version of ocaml-jupyter after the separate PR.

@zhelih
Copy link
Collaborator Author

zhelih commented Aug 26, 2025

I see format fails, correcting.

@zhelih
Copy link
Collaborator Author

zhelih commented Aug 26, 2025

Enhanced ppx test (and all of them) to be stable.

@zhelih
Copy link
Collaborator Author

zhelih commented Oct 10, 2025

All tests pass now.

@akabe
Copy link
Owner

akabe commented Oct 10, 2025

Hi @zhelih,

Thank you so much for completing this incredibly challenging upgrade — I really appreciate your dedication and the high quality of your work.
All the tests are passing perfectly, which is truly impressive. Excellent job! 🎉

When you have time, could you please also update the OCaml version in the following workflow files?

The gh-pages.yaml workflow automatically builds and updates the API documentation at
https://akabe.github.io/ocaml-jupyter/ .

The release.yaml workflow creates a tarball for OPAM release and generates a draft GitHub release when a new tag is pushed.

Thanks again for your great work and for keeping the project in such good shape!

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