Live data from Hacker News

Show HN: A simple JavaScript notebook in one file

github.com

31–35 of 35 posts

Re: Show HN: A simple JavaScript notebook in one file

#31

Well I had this idea that with github, you are sort of forced to download HTML pages, so there you are. Clearly this is not very satisfactory. I have added screenshots, a download link, and a more interesting example (mfib). Will look into ways to make everything even easier.

The contents of github repository have evolved quite a bit, mostly in response to comments (making some of them a bit out-of-sync).

Re: Show HN: A simple JavaScript notebook in one file

#32

Very cool, I'm building something similar (with a larger scope) [0] (it also has one-file exports, but it does load stuff from a CDN so it's not as contained to a single file as this project is.) If you're looking for next steps: You can actually run user code using `import`, which will allow your users to import code from external websites using familiar `import {x} from " https://some-url.com/bla.js "` syntax at th…

You project looks very interesting. Shared idea of programming in the browser, but much more ambitious. I have experimented with async/await with js+help.html. The import pointer is very interesting, thank you for that. My impulse is to try to write a function to import a code from a URI.

I recreated my mfib example as a Starboard notebook:

https://starboard.gg/timcwinkler/mfib-nC0Am5G

Very nice looking!

One difference from js+help.html, with it outputs are also saved.

Re: Show HN: A simple JavaScript notebook in one file

#33

This is a very simple Javascript notebook in one completely self-contained HTML file. It was inspired by the concept of Jupyter notebooks. You can enter Javascript code and execute it in the browser, completely locally and possibly offline. The performance can be pretty good. You can put in HTML documentation and also use HTML to provide UI for simple tools. All you need is the js+help.html file, which contains basic…

Have created a live link via github.io

https://timcwinkler.github.io/js+help.html

Re: Show HN: A simple JavaScript notebook in one file

#34
I realize now that I should have included more of an explanation of what "notebook" signified and should have included the initial comment in the Readme (or some version of it). I had the impulse to keep things absolutely as simple as possible.

I learned about how to make it easy to try a webpage from github which is useful.

I don't really have a lot invested in the result of this, but I have the feeling that people who are really trying to make a product must find that the spotlight of YC moves awfully fast.

I wonder if there needs to be a website that is a catalog of interesting projects (organized by purpose). Looking at github, it appears that it contains some lists of projects on github.

Re: Show HN: A simple JavaScript notebook in one file

#35

Earlier quoted context omitted.

You can do that with Github Pages, but I'm not too knowledgable. But I copied your code in an codesandbox: https://ijlkq.csb.app/ Fork it if you want, I will delete it then (or on your request)

You can leave it if you wish. I'll have to learn a bit more about https://codesandbox.io/ , it looks very useful. Apparently the contents of the page were somehow mangled a bit. As a result it is not functional.

I ended up looking into Github Pages and it wasn't too hard to use. (The documentation makes it look harder that it actually is.)

Thank you, benjaminsuch, for that pointer.

Post reply on HN