News for hackers. Stuff that matters.
Re:Show HN: Kajero – Interactive JavaScript notebooks by peternicky on Monday May 16, 2016 @01:28PM (#11707920)
Ever seen tonicdev.io? Is it possible to use npm packages in notebooks?
Re:Show HN: Kajero – Interactive JavaScript notebooks by JayOtter on Monday May 16, 2016 @01:32PM (#11707948)
Yup, Tonic is super cool. This is more for presenting data than demoing libraries, but I'd like it to be as useful as possible for many things.

If you save it as an HTML file you can obviously add your own client-side JS. Node packages are a ways off right now though - would need to think about how to do it as it's all client-side.

Re:Show HN: Kajero – Interactive JavaScript notebooks by caffeinewriter on Monday May 16, 2016 @02:58PM (#11708682)
Perhaps Browserify would be something that would work in this use case. Awesome job!

In addition, it might be cool to have in-line substitution of data. For example, in your analytics notebook[0], I noticed you referenced the number in text afterwards, but if Kajero was pulling from a live data source, it'd be neat to do something like this:

    Predictably, most came from the US ({{data.analytics[0]}}). There were also a lot ({{data.analytics[1]}}) from the UK - this is probably mainly due to it being posted on my Facebook page, with these hits being from friends rather than internet randoms.
[0]: http://www.joelotter.com/kajero/?id=3dfe6ba41741626a95b3a717...
Re:Show HN: Kajero – Interactive JavaScript notebooks by primitivesuave on Monday May 16, 2016 @03:25PM (#11708898)
I second this - would be nice to have some kind of handlebars or nunjucks integration (https://mozilla.github.io/nunjucks/).
Re:Show HN: Kajero – Interactive JavaScript notebooks by JayOtter on Monday May 16, 2016 @03:37PM (#11708996)
Agreed, this would be excellent. I'll look into it. Thanks!
Re:Show HN: Kajero – Interactive JavaScript notebooks by arve0 on Monday May 16, 2016 @03:15PM (#11708824)
Have you seen https://wzrd.in ?
Re:Show HN: Kajero – Interactive JavaScript notebooks by JayOtter on Monday May 16, 2016 @03:38PM (#11708999)
I hadn't, thanks!