Ability to load custom version of XPlot.Plotly
See original GitHub issueIs 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:
- Created 3 years ago
- Comments:14 (13 by maintainers)
Top GitHub Comments
Xplot.Plotly integration is now provided by an external package, Xplot.Plotly.Interactive, which you can install in your notebook using the following:
@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.