ais-dotnet / ais.net.notebooks Goto Github PK
View Code? Open in Web Editor NEWA selection of .NET Interactive Notebooks demoing Ais.Net functionality.
License: Apache License 2.0
A selection of .NET Interactive Notebooks demoing Ais.Net functionality.
License: Apache License 2.0
Hi - I tried running "ais-dotnet-bing-maps-realtime.dib", and it threw the following error:
var jsKernel = Kernel.Root.FindKernel("javascript");
jsKernel.RegisterCommandType<VesselPositionCommand>();
Error: (1,28): error CS1061: 'Kernel' does not contain a definition for 'FindKernel' and no accessible extension method 'FindKernel' accepting a first argument of type 'Kernel' could be found (are you missing a using directive or an assembly reference?)
I updated the "FindKernel" method to "FindKernelByName" and that seems to have worked.
I tried running both the geofenced and realtime notebook in VS Code, as well as Visual Studio.
In VS Code, I tried running the code with Javascript(.NET Interactive)
When running the following code:
interactive.registerCommandHandler({commandType: 'VesselPositionCommand', handle: c => {
UpdateVesselPosition(c.command);
}});
I get this error:
Error: interactive.registerCommandHandler is not a function
In Visual Studio, the notebook cell's code is recognized as C#, so it has a different error:
(1,36): error CS1026: ) expected
(1,36): error CS1002: ; expected
(1,50): error CS1012: Too many characters in character literal
(1,73): error CS1002: ; expected
(1,73): error CS1513: } expected
(4,2): error CS1002: ; expected
(4,3): error CS7017: Member definition, statement, or end-of-file expected
I don't think my Visual Studio install has access to Javascript right now, so I'm willing to ignore errors there.
Is there anything I'm doing wrong? What is the best way to communicate version information of what I'm running to you?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.