JoelOtter / kajero

Interactive JavaScript notebooks with clever graphing
Other
1.87k stars 110 forks source link

Editable code blocks #57

Open pedro93 opened 7 years ago

pedro93 commented 7 years ago

Is there a way to create editable code blocks? Additionally can these code blocks reference bigger code sources?

Thanks!

JoelOtter commented 7 years ago

Define 'editable'. Everything is editable.

pedro93 commented 7 years ago

Perhaps its easier to explain what I'm trying to do. I want to create a notebook to teach a group of how to program. In order to that I need to be able to create editable text fields where they can code and then test out the code by clicking the run button.

These code snippets are meant to be part of a greater code base which they will fill out (the missing pieces) and see the final result in as a game.

I know about the existence of jupyter for this sort of thing, but the idea was to host it as a website for anyone to use and later download as a static webpage and javascript is the ideal language for that.

Does that make more sense?

JoelOtter commented 7 years ago

Honestly I think you'd be better forking or even building from scratch!