Git Product home page Git Product logo

Comments (9)

cartermp avatar cartermp commented on August 14, 2024 1

I think this is an upstream issue - I updated this yesterday and confirmed that 4.0.4 worked with the latest .NET Interactive then.

from xplot.

kkartavenka avatar kkartavenka commented on August 14, 2024

Actually, somehow today I received as well:

image

Visual Studio Code:

Version: 1.62.1 (user setup)
Commit: f4af3cbf5a99787542e2a30fe1fd37cd644cc31f
Date: 2021-11-05T10:57:55.946Z
Electron: 13.5.2
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.22000

from xplot.

JasonBock avatar JasonBock commented on August 14, 2024

I'm getting a very similar error. Here's the code I'm trying to run:

#r "nuget: XPlot.Plotly, 4.0.4"
#r "nuget: XPlot.Plotly.Interactive, 4.0.4"
#r "nuget: Collatz, 0.1.0"

using Collatz;

var position = 0;
var sequence = CollatzSequenceGenerator.Generate(5)
	.Select(_ => Tuple.Create(position++, (long)_));

var chart = Chart.Line(sequence);

chart

In VS, I can't copy the error, but here's a screen shot:
image
In VSCode, this is the error message:

Error: System.IO.FileNotFoundException: Could not load file or assembly 'System.Management.Automation, Version=7.1.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
File name: 'System.Management.Automation, Version=7.1.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at System.Reflection.Assembly.get_ExportedTypes()
at Microsoft.DotNet.Interactive.Extensions.AssemblyBasedExtensionLoader.LoadFromAssembly(FileInfo assemblyFile, Kernel kernel, KernelInvocationContext context) in D:\workspace\_work\1\s\src\Microsoft.DotNet.Interactive\Extensions\AssemblyBasedExtensionLoader.cs:line 112
at Microsoft.DotNet.Interactive.Extensions.AssemblyBasedExtensionLoader.LoadFromAssembliesInDirectory(DirectoryInfo directory, Kernel kernel, KernelInvocationContext context) in D:\workspace\_work\1\s\src\Microsoft.DotNet.Interactive\Extensions\AssemblyBasedExtensionLoader.cs:line 74
at Microsoft.DotNet.Interactive.Extensions.AssemblyBasedExtensionLoader.LoadFromDirectoryAsync(DirectoryInfo directory, Kernel kernel, KernelInvocationContext context) in D:\workspace\_work\1\s\src\Microsoft.DotNet.Interactive\Extensions\AssemblyBasedExtensionLoader.cs:line 47
at Microsoft.DotNet.Interactive.CompositeKernel.LoadExtensionsFromDirectoryAsync(DirectoryInfo directory, KernelInvocationContext context) in D:\workspace\_work\1\s\src\Microsoft.DotNet.Interactive\CompositeKernel.cs:line 320
at Microsoft.DotNet.Interactive.CompositeKernel.LoadExtensions(KernelCommand command, KernelInvocationContext context, KernelPipelineContinuation next) in D:\workspace\_work\1\s\src\Microsoft.DotNet.Interactive\CompositeKernel.cs:line 167
at Microsoft.DotNet.Interactive.KernelCommandPipeline.<>c__DisplayClass6_0.<<BuildPipeline>g__Combine|2>d.MoveNext() in D:\workspace\_work\1\s\src\Microsoft.DotNet.Interactive\KernelCommandPipeline.cs:line 74
--- End of stack trace from previous location ---
at Microsoft.DotNet.Interactive.KernelCommandPipeline.SendAsync(KernelCommand command, KernelInvocationContext context) in D:\workspace\_work\1\s\src\Microsoft.DotNet.Interactive\KernelCommandPipeline.cs:line 48

from xplot.

JasonBock avatar JasonBock commented on August 14, 2024

FWIW if I ran the cell twice the error goes away and XPlot works.

from xplot.

jonsequitur avatar jonsequitur commented on August 14, 2024

What version number does #!about show?

from xplot.

JasonBock avatar JasonBock commented on August 14, 2024

.NET Interactive

© 2020 Microsoft Corporation

Version: 1.0.255902+b0afbdc47dec91e62b0c5cb587a0f2c24242eca8

Build date: 2021-11-14T17:01:53.8658953Z

https://github.com/dotnet/interactive

from xplot.

cartermp avatar cartermp commented on August 14, 2024

Closing out, as latest XPlot.Plotly.Interactive (4.0.6) + latest .NET Interactive all work
image

from xplot.

JasonBock avatar JasonBock commented on August 14, 2024

Yep, all good on my machine as well :)

from xplot.

cartermp avatar cartermp commented on August 14, 2024

Dope!

from xplot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.