question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve .NET Interactive notebook / Jupyter support

See original GitHub issue

ScottPlot Version: Latest NuGet, 4.1.40

Operating System: Windows 10

Application Type: .NET Interactive Notebook

Question: How to display a plot in the interactive notebook?

In python’s matplotlib you basically go:

fig.scatter(/*put data here*/9

And the return of that displays as a plot.

I basically just copied an example from your page

// Install library from nuget
#r "nuget:ScottPlot"
// Get data
double[] dataX = new double[] { 1, 2, 3, 4, 5 };
double[] dataY = new double[] { 1, 4, 9, 16, 25 };
// make plot
var plt = new ScottPlot.Plot(400, 300);
// Output of this is just shown as a table
plt.AddScatter(dataX, dataY)

This is the output:

grafik

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
swhardencommented, Feb 12, 2023

@swharden Could we add this feature for scottplot 5.x ?

I’ll prioritize this and get it published in the next release 👍

0reactions
neilyoung2008commented, Feb 11, 2023

@swharden Could we add this feature for scottplot 5.x ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

NET Interactive
NET Interactive is a fully supported Jupyter kernel that you can use with Jupyter Notebook, JupyterLab, nteract, and other Jupyter frontends. You can...
Read more >
NET Interactive Notebooks is now Polyglot Notebooks!
The .NET Interactive Notebooks extension in Visual Studio Code has been renamed to Polyglot Notebooks! A little bit of history.
Read more >
Using .NET Core in Jupyter Notebook | Devportal
This article explains steps to setup Jupyter Notebook for .NET Core programming languages on Windows 10.
Read more >
Empowering Power Platform developers with .Net ...
Early 2022, I have read some content regarding Jupyter Notebooks and started to think it could be a great tool to help Power...
Read more >
Polyglot Notebooks
The Polyglot Notebooks extension, powered by .NET Interactive, brings support for multi-language notebooks to Visual Studio Code. Classic notebook software ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found