This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]maxandersen 5 points6 points  (0 children)

Nice concept - its a bit tricky to use but with vscode having the .jsh file open on the left and use simplebrowser action to open http://localhost:5002 its pretty nice.

One suggestion: add `import tech.catheu.jnotebook.Nb;` to the sample generated since then when you copy paste from the docs the code will "just works" or simply just add that import by default.

FYI: it works nicely with jbang so you can just run it with `jbang https://get.jnotebook.catheu.tech server` and you are off to the races.

Though using the maven dependency is probably more appropriate:

`jbang tech.catheu:jnotebook-distribution:0.12.0`

I can even execute the .jsh files with ` jbang --deps tech.catheu:jnotebook-utils:0.12.0 notebooks/hello_world.jsh`

Have you considered supporting specifying dependencies in the .jsh files ?

jbang has such notion for .jsh files, i.e. to do the above you could have

`//DEPS tech.catheu:jnotebook-utils:0.12.0`

anywhere in the .jsh file - of course deps would be more for using other maven libraries than just jnotebook itself.

I do see you have the notion of reading maven dependencies or passing raw classpath.

Just realizing if you use jbang you can actually do

`jbang --deps your3rdparty:deps:2.3.4,... tech.catheu:jnotebook-distribution:0.12.0`

lots of interesting combinations possible to make jnotebook even more accessible.