Live data from Hacker News

Show HN: A simple JavaScript notebook in one file

github.com

11–20 of 35 posts

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

#11

Earlier quoted context omitted.

What I would wish that I could do is just make it so that there was a link to the HTML file in the Readme. Click it and there you go. My impression is that this is discouraged. (Am I wrong about that?)

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.

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

#12
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.

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

#17

Please add a screenshot of what a rendered notebook looks like.

If you download and open up the html file, it contains, what is essentially, a screenshot with explanations. (A very simple screenshot, but one you can extrapolate from.)

You can instead use githack[1] to quickly serve files directly from your repository.

[1]: https://raw.githack.com

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

#20
post #15

It remainds me very much of tiddlywiki [1], which is not as simple and limits the js hackability as default (for security), bu is also a self-contained html+js file [1] https://tiddlywiki.com/

Actually tiddlywiki was what made me realize that something like this was possible. Much more complex. The key thing was the ability to "save".
Post reply on HN