Giter VIP home page Giter VIP logo

Comments (4)

KevinRansom avatar KevinRansom commented on August 26, 2024

This works with the contents of master branch.

using System.Text.Json;
var jsonException = new JsonException();
var location = jsonException.GetType().Assembly.Location;
Console.WriteLine("{0}", location);

image

I think I will update the test slightly though.

from interactive.

osmanzeki avatar osmanzeki commented on August 26, 2024

I tried this today and seem to have a similar (or same?) issue. In this case, I am running the C# kernel in Jupyter in Windows 10 WSL.

In VSCode integration:
image

In a browser notebook:
image

Also, I am using Anaconda, basically following these general steps:
https://www.hanselman.com/blog/AnnouncingNETJupyterNotebooks.aspx

from interactive.

jonsequitur avatar jonsequitur commented on August 26, 2024

@osmanzeki Can you run #!about in the notebook and post the version here? Thanks.

from interactive.

osmanzeki avatar osmanzeki commented on August 26, 2024

@osmanzeki Can you run #!about in the notebook and post the version here? Thanks.

@jonsequitur Ok, I tried running that command and noticed that nothing was happening at all. Its then that I realized that I had installed the kernels using the command listed in Scott's article:

dotnet try jupyter install

Which is the one causing issues actually! I just now noticed that one should install using interactive in order for things to work properly (as instructed here):

dotnet interactive jupyter install

I failed to realize that there were basically two different sets of kernels out there.

I can confirm that everything works fine now on my end with the interactive kernels (System.Text.Json loads properly) and that I do get the output of #!about in that kernel.

image

As a new user to these, I don't exactly know what the difference is between dotnet-try and dotnet-interactive, that confusion was the main source of the problem in my case.

Hope this is helpful to someone else playing with these out there. Thanks for the help @jonsequitur !

from interactive.

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.