Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save TylerLeonhardt/e7a0d5cc9ac466ec128ed147e74d16a4 to your computer and use it in GitHub Desktop.
Save TylerLeonhardt/e7a0d5cc9ac466ec128ed147e74d16a4 to your computer and use it in GitHub Desktop.
Plotting with Xplot using type accelerators
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DBremen
Copy link

DBremen commented Apr 8, 2021

Hi @TylerLeonhardt, how do I get those functions within Jupyter Lab installed locally or within VS Code?

@TylerLeonhardt
Copy link
Author

@DBremen, if you use the .NET Interactive Notebooks extension: https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-interactive-vscode

You should be able to open this file I think. Or use the Jupyter Notebooks extension with .NET Interactive kernels installed.

@DBremen
Copy link

DBremen commented Apr 8, 2021

Thanks a lot for your super fast reply Tyler, really appreciate it. The weird thing is that it doesn't work in either Jupyter lab (locally) or VS Code. That's why I was wondering if anything specific is needed. I guess, that my configuration is somehow messed up.
image
image
Thanks again for your help.
Cheers,
Dirk

@TylerLeonhardt
Copy link
Author

Can you open an issue on dotnet interactive? It's been a little bit of time since I touched this last and I think it's under rapid development.

https://github.com/dotnet/interactive

@DBremen
Copy link

DBremen commented Apr 15, 2021

FYI Tyler, I opened dotnet/interactive#1230. It led to an interesting discussion. The short version is, that you need to explicitly install the related NuGet package with #!csharp #r "nuget: XPlot.Plotly.Interactive". This made it work in VSCode but it's still not working in Jupyter lab, which apparently has something to do with the Kernel version loaded. I didn't have time to look into this though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment