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.
Show HN: A simple JavaScript notebook in one file
31–35 of 35 posts
Re: Show HN: A simple JavaScript notebook in one file
#32Very 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.
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
#33This 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…
Re: Show HN: A simple JavaScript notebook in one file
#34I 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
#35Earlier 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.
Thank you, benjaminsuch, for that pointer.