nteract / nteract-next

Iterating on the next version of nteract
22 stars 0 forks source link

CodeMirror editor #17

Closed rgbkrk closed 10 months ago

rgbkrk commented 10 months ago

My goal here is to set up CodeMirror as the code editor for code and markdown cells while matching the styling of shadcn/ui. Additionally, I added in ctrl-enter and shift-enter for running code making amateur use of CodeMirror 6's StateField and keybindings.

For the theme, I copied from https://www.zackrw.com/cbz/codemirror-themes-with-shadcn-ui.

image

Clearly more to be tweaked and refined. I'm just happy to have this bootstrapped a bit.