Live data from Hacker News

TypeCell, open source TypeScript notebooks live programming environment

typecell.org

21–26 of 26 posts

Re: TypeCell, open source TypeScript notebooks live programming environment

#21
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

Re: TypeCell, open source TypeScript notebooks live programming environment

#22
post #3
post #2

"Running code has never been easier :)" Well... presses Ctrl-Shift-i ...I found an easier way to run some code :)

F12 is even easier

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.

Re: TypeCell, open source TypeScript notebooks live programming environment

#23

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.

Re: TypeCell, open source TypeScript notebooks live programming environment

#25

One of the great mysteries of life is why Microsoft doesn't provide a good TypeScript notebook for VsCode. The JS notebook plugin is like a toy.

Why should they?

They have a JS Notebook that has potential but it's so outdated. Examples use " = require('package')" which is old tech.

They own VSCode and TypeScript. No one is better positioned to make such a product.

Post reply on HN