Convert .linq to .ipynb so that you can run your LINQPad scripts in VSCode.
Install Extension from VS Code Extensions Marketplace (or search for 'LinqPad Script to .NET Notebook' in VS Code), open linqpad file, right click in editor and choose Convert
User creates .ipynb and runs 2 cells of C# code New .ipynb is generated and opened in VS Code (on Windows).
In a new/existing .NET Interactive Notebook (.ipynb) - use VS Code's .NET Interactive Extension to open it
Cell 1
#i "C:\Users\amb12\source\repos\ambrose-leung\build\nupkg" //if building locally
#r "nuget:Ambrose.Linqpad.Convert.KernelExt"
Cell 2 (Requires the path to the .linq file to be entered manually)
#!convert2dnn "C:\path\to\linqpadscript.linq" //dnn = Dot Net Notebook
- Uses
Microsoft.DotNet.Interactive.Documents
nuget to create .ipynb - Will use
Chino.Jupyter.Extensions
to implement#load
functionality - Logic for conversion is packaged as a .NET library
- Implements IKernelExtension to expose the magic command #!convert2dnn
- Go to Issues tab
- This is currently in the "Proof of concept" stage and may not be actively developed