Please, Observable, put something on the page that says what language this is! I figured this was like Colaboratory ( https://colab.research.google.com ) or Azure Notebooks ( https://notebooks.azure.com/ ) or some other hosted-jupyter variant. There was no information about how it should work when I went to the scratchpad, and I could barely tell it was Javascript when picking one of the sample notebooks.
Show HN: Observable Notebooks
81–90 of 136 posts
Re: Show HN: Observable Notebooks
#82How would I load in data that is stored on my harddrive (not web addressable) without having to run my own server or go through the file selector popup box each time. User JS can't just read the harddisk (a requirement for web security). If I have to run my own server then a major selling point of this is gone.
I work with large tabled data and very often use vectorised functions using numpy or pandas, working on entire columns with a fantastically simple interface. A = B * x, for arrays B, scalars x returning a new array A. Is there something as beautiful available, working around the lack of operator overloading in JS? I've only seen string abuse like p('A') = p('B*x'). Auh.
Re: Show HN: Observable Notebooks
#83A+. Feedback: I instantly understood that it was something similar to Jupyter, and my very first mental question was "I hope it's in JS", and this took a surprisingly long few seconds and two page navigations to establish -- I expected the choice of language to be on the splash page. Anyway, very well done, and it's quite clear to me that JS is going to trounce Python for nearly everything long-term. The JS ecosystem…
Re: Show HN: Observable Notebooks
#84So please let me know if this is rude, but how is this funded?
Re: Show HN: Observable Notebooks
#85Also, where are the notebook stored? Can I get an offline copy? Wasn't obvious from a quick look.
Re: Show HN: Observable Notebooks
#86Re: Show HN: Observable Notebooks
#87Earlier quoted context omitted.
> you don't have to remember which ones to update if you changed one, it will update automatically. Although I see how that would enable rapid iteration and make e.g. creating nice visualizations much easier, I don't think it should be mandatory. The user may want to control the state their notebook and variables are in manually.
> The user may want to control the state their notebook and variables are in manually. Can you share an example where you’d want that behavior? Spreadsheet cells don’t ask you when they update themselves.
Re: Show HN: Observable Notebooks
#88The homepage copy didn't quite capture me... until I realized it was the new thing by D3's Mike Bostock! Maybe worth name-dropping that somewhere on that page? Though I don't know how many people would respond to that other than myself (hopefully lots of people).
Eh. I respect people more for not namedropping themselves, but maybe I'm alone in this. (Are you sure it's a good idea to perpetuate the status quo? It's hard to get anyone to pay attention to what you've made unless you're already known. That seems a bit unfair to the next generation, and rather the opposite of oldschool hacker ethos.)
1) I can match my previous knowledge of related projects to get an idea of what this project is trying to be, and likely have that be accurate.
2) in an age where any random half-baked idea has a polished marketing page and lofty ambitions, it's a noise filter for "these people have completed projects that have actually been used". If anything, on a page that doesn't name-drop, I'd trust a bare-bones, nocss landing page more.
Re: Show HN: Observable Notebooks
#89Any plans to make the notebooks embeddable in other sites?
Yes, and single interactive cells as well. A notebook already runs in a sandboxed iframe, and is able to load its dependencies there (libraries, data, values from other notebooks). So we're in quite good shape to be able to do that soon.
Re: Show HN: Observable Notebooks
#90This works by executing Javascript code written by the user. Since these notebooks are shareable, and there is also a log-in feature, do any security features need to be put in place to prevent, say, someone linking me to a notebook that sends my login credentials for observablehq.com to a malicious host? That is, is the javascript inside the notebook sandboxed in any way? I don't fully understand how modern web secu…
Yes. We use s with the sandbox attribute ( https://developer.mozilla.org/en-US/docs/Web/HTML/Element/if... ) to uh ... sandbox away the running JavaScript. If you inspect them, you'll see that those frames are hosted on observableusercontent.com instead of observablehq.com. It's a similar security model to how raw files on GitHub are served from githubusercontent.com.
https://beta.observablehq.com/@ontouchstart/test
to confirm that the code is running in an iframe from host https://static.observableusercontent.com