cyrilou242 / jnotebook

Notebook for Java.
https://jnotebook.catheu.tech
MIT License
12 stars 3 forks source link

consider jbang way of launching #13

Open maxandersen opened 11 months ago

maxandersen commented 11 months ago

today you can do jbang tech.catheu:jnotebook-distribution:RELEASE or jbang https://get.jnotebook.catheu.tech.

with a cyrilou242/jbang-catalog it could be made to be jbang jnotebook@cyrilou242 or by adding a main.java to jnotebook site it could be just jbang https://jnotebook.catheu.tech

With jbang adding deps to your notebooks becomes nice with jbang --deps ... jnotebook@cyrilou242

maxandersen commented 11 months ago

I added a jnotebook alias to https://github.com/maxandersen/jbang-catalog and now you can do:

jbang jnotebook@maxandersen render --no-optimize %{https://raw.githubusercontent.com/cyrilou242/jnotebook/main/doc/book.jsh} out.html

I had to use --no-optimize as otherwise it fails. see #14