Skip to content
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

Gradle plugin #105

Closed
breandan opened this issue Sep 18, 2020 · 3 comments
Closed

Gradle plugin #105

breandan opened this issue Sep 18, 2020 · 3 comments

Comments

@breandan
Copy link
Contributor

Does kotlin-jupyter plan to provide a Gradle plugin? Here is some code I've been using in case it helps. Although specific to the project I am working on, I was thinking it might be useful for others to have a Gradle DSL to configure the JSON manifest and tasks to install/publish/run notebooks.

@altavir
Copy link
Contributor

altavir commented Sep 18, 2020

@breandan Lately, it is not required anymore to copy descriptor to the user directory, it could be used from anywhere. Here is the relevant part of the documentation: https://github.com/Kotlin/kotlin-jupyter#supported-libraries (it was not working last time I've checked, but it should soon. As for other parts of the descriptor, you can look at #99. I think that in the end it would be possible to create a major part of the descriptor inside the module and the library descriptor will hold only a jar path and the entry point (maybe default imports as well).

@altavir
Copy link
Contributor

altavir commented Feb 27, 2021

The latest dev release supports class-based descriptor that does not require json at all, you just load your library via DependsOn and it works. An important part that all renderers loaders etc are now in code, not in strings and Kotlin kernel API allows notebook reflection as well. Here is the demo: https://github.com/mipt-npm/visionforge/blob/dev/demo/jupyter-playground/src/main/kotlin/hep/dataforge/playground/VisionForgePlayGroundForJupyter.kt.

@ileasile
Copy link
Contributor

Closing this issue as it was implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants