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.

xplot.plotly.interactive failed with the latest VS Code

See original GitHub issue

With the update to the latest VS Code version, the nuget package xplot.plotly.interactive failed.

To Reproduce

  1. Use Visual Studio Code 1.62.0 or 1.63.0-insider
  2. Code:
#r "nuget:XPlot.Plotly"

#r "nuget:xplot.plotly.interactive" 
  1. Run

Expected behavior No errors since they were not with the previous version of VS Code.

Output

Loading extensions from XPlot.Plotly.Interactive.dll

Error: Microsoft.DotNet.Interactive.KernelExtensionLoadException: Failure loading Kernel Extension —> System.MissingMethodException: Method not found: ‘Microsoft.DotNet.Interactive.DisplayedValue Microsoft.DotNet.Interactive.KernelInvocationContextExtensions.Display(Microsoft.DotNet.Interactive.KernelInvocationContext, System.Object, System.String)’. at XPlot.Plotly.Interactive.KernelExtension.Microsoft.DotNet.Interactive.IKernelExtension.OnLoadAsync(Kernel kernel) at Microsoft.DotNet.Interactive.Extensions.AssemblyBasedExtensionLoader.LoadFromAssembly(FileInfo assemblyFile, Kernel kernel, KernelInvocationContext context) in C:\a_work\1\s\src\Microsoft.DotNet.Interactive\Extensions\AssemblyBasedExtensionLoader.cs:line 132 — End of inner exception stack trace —

If I re-run this code – there will be no error, however instead of chart, I see a table with parameters (see screenshot).

Screenshot

image

image

Other information:

  • .NET 5.0.402
  • Enviroment (jupyter notebooks in Visual Studio Code)
  • Library version 4.0.3

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
cartermpcommented, Nov 8, 2021

Looks like Plotly.NET updated to include the latest dependencies as well.

1reaction
cartermpcommented, Nov 8, 2021

@kkartavenka @Alkasai can you try now? I updated dependencies and published a new set of packages.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with F# Interactive and Plotly (XPlot)
After installing XPlot and Plotly on VS Code on a new machine, they no longer work properly. When creating a line chart in...
Read more >
XPlot.plotly and Xplot.GoogleCharts not rendering in ...
This does not render at all in a VSCode interactive notebook. On saving it to a .fsx file and running it, Firefox opens...
Read more >
XPlot.plotly and Xplot.GoogleCharts not rendering in Firefox or ...
This does not render at all in a VSCode interactive notebook. On saving it to a .fsx file and running it, Firefox opens...
Read more >
Jupyterlab extension install for Plotly 4.9.0 fails
I'm trying to install Plotly for use within a Jupyter Lab environment using the instructions from Plotly's web site Instructions.
Read more >
Plotly.NET
Plotly.NET is an Interactive charting library for .NET programming languages. This page contains the documentation for: Plotly.NET.
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