dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.9k stars 387 forks source link

Import .NET notebook as module #322

Open roberchi opened 4 years ago

roberchi commented 4 years ago

I create a simple extension here https://github.com/roberchi/Chino.Jupyter.Extensions to support the loading .NET notebook as modules in order to create a kind of library of notebooks. The extension simply load the notebook specified #!import [path\notebook] by loading the json definition and execute each code cell in the same handling kernel of the extension. Do you think colud be a relevant feature and can be included in the core? I'm not expert in the kernel implementation and extension so my code need to be reviewed and improved :-)

jonsequitur commented 4 years ago

I think this would be a very useful feature to include and we'd be happy to help you with a PR.

There are a few things to consider:

jonsequitur commented 4 years ago

@LadyNaggaga @cartermp @tmat @KevinRansom Thoughts on this?

roberchi commented 4 years ago

@jonsequitur by my side, extends #load directive to support .ipynb is a great idea.

LadyNaggaga commented 4 years ago

I think this would a very useful feature too. I am onboard

jonsequitur commented 3 years ago

Maybe this should be #r "notebook:/path/to/notebook"