it's off the home row, and isn't available on Apple keyboards by default without also using the Fn modifier, at which point it's only different by one keystroke, not two.
Observable doesn't have TypeScript support, which is a real drag. Their embeds also don't show code, so it's not very useful as a teaching tool in a blog post for example. However, they don't charge for embedding, so that's not a problem per se.
Nice! I made a quick'n'dirty Typescript notebook with React + Plotly as a Matlab clone a few years ago. I was impressed with how everything you need to compile and execute TS was built-in to Monaco, using web workers etc.
So many of these projects over the years. There's zero profit to be made here IMHO. Though it would be cool if somebody manage to crack the formula, I don't see how this specific project does that.
Cool. This may be a bit nitpicky, but most of the interactive JavaScript environments I have seen with auto-run ("evaluates as-you-type"), including this one, freeze in the following case.
An easy way to correct this is injecting a watchdog function call at the end of every for and while loop. It’s a trivial AST transformation that’s relatively fool proof as opposed to trying to figure out what condition would progress the loop. The semantics of the watchdog depend on the use case and ideally you can transform the evaled code in an async wrapper. Set a global variable to the current time on animation frames and then throw an exception inside the watchdog when it times out (when difference between the global variable and current time is > x ms).
I'd like to see this as a live code-sharing tool. Sometimes when interviewing candidates I'm using codeshare.io, but that doesn't have "live compilation". This would be great for that. I'm missing some features, and they're expected as it's in alpha, but I don't want to keep them from you: 1. vim mode (ace editor could be nice for this?), 2. a way to share with a not logged-in user 3. dark mode 4. maybe I'm missing it, but having a `console.log` not being in the output is unintuitive
I don't seem to be clever enough to figure out importing from NPM. The docs indicate that you don't need to do anything special, but all of my attempts yield "Error: couldn't resolve module [module name]". I can however import from other notebooks, and that's very cool: https://www.typecell.org/@steveadams/test
That sounds like an error you get when the top level module you're importing depends on another module that's not part of the bundle. Try using https://esm.sh - that works for me in Observable notebooks, at least.
25 comments
[ 2.6 ms ] story [ 26.0 ms ] threadWell... presses Ctrl-Shift-i ...I found an easier way to run some code :)
https://jasmcole.com/2021/05/19/matslab/
https://jasmcole.github.io/Pages/MaTSlab
I use Quokka.js but I hate that the free version is almost useless
(no, I'm not kidding: https://www.npmjs.com/package/halting-problem)
[0]: https://vadosware.io/post/the-future-of-free-and-open-source...
They own VSCode and TypeScript. No one is better positioned to make such a product.
> Something went wrong: TypeError: Cannot read properties of null (reading 'useRef')
Appears to be an issue with the charting library used here at a glance?