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.

Ability to load custom version of XPlot.Plotly

See original GitHub issue

Is your feature request related to a problem? Please describe. I’ve made a small change to XPlot.Plotly (see https://github.com/fslaborg/XPlot/pull/144), and I’d like to be able to load that version of the library into a Jupyter notebook so that I can use it to create a chart. In that pull request, I’ve added support for the stackgroup field on the Graph.Scatter class.

Describe the solution you’d like I was expecting to be able to do something like this:

#i nuget:/Users/mscottford/src/corgibytes/XPlot/pkg
#r nuget:XPlot.Plotly,3.1.0-preview1-preview-LocalBuild

Which results in:

Restore sources

/Users/mscottford/src/corgibytes/XPlot/pkg

Installed package XPlot.Plotly version 3.1.0-preview1-preview-LocalBuild

But running this:

new Graph.Scatter { stackgroup = "test" }

results in:

(1,21): error CS0117: 'Graph.Scatter' does not contain a definition for 'stackgroup'

Describe alternatives you’ve considered I tried to use reflection to see what version of XPlot.Plotly is loaded.

typeof(Graph.Scatter).Assembly.ToString()

But that resulted in:

XPlot.Plotly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

So I wonder if there’s a shim between XPlot.Plotly that ships with dotnet-interactive which would need to be updated with the field that I added. I skimmed through the project source, and didn’t find anything obvious (at least to me 😄).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
jonsequiturcommented, Feb 17, 2021

Xplot.Plotly integration is now provided by an external package, Xplot.Plotly.Interactive, which you can install in your notebook using the following:

#r "nuget:xplot.plotly.interactive"
1reaction
mscottfordcommented, Jun 16, 2020

@jonsequitur and @colombod I’m happy to submit a PR. I’ll send those in later this week. I’ll do one for the change to the install script and another for the changes as a result of compiling against XPlot.Plotly vNext.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot plot inline plotly charts in Jupyter Notebook using ...
I was able to show the plot using latest XPlot version and interactive ( XPlot.Plotly.Interactive ) package : #r "nuget: XPlot.
Read more >
Getting started with C# DataFrame and XPlot.Ploty
This article demonstrates some basic features of the DataFrame and XPlot.Ploty packages in Jupyter Notebook.
Read more >
XPlot - Plotly Support
FsLab takes care of installing and referencing the necessary packages and adds an FSI printer that shows the charts you'll create in a...
Read more >
Using ML.NET in Jupyter notebooks - Cesar de la Torre
In this case, we're going to use ML.NET and XPlot for plotting data distribution and the regression chart once the ML model is...
Read more >
XPlot - F# Data Visualization Package
XPlot is a cross-platform data visualization package for the F# programming language powered by popular JavaScript charting libraries Plotly and Google ...
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