-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use System.Text.Json iin Jupyter c# kernel #42
Comments
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. Also, I am using Anaconda, basically following these general steps: |
@osmanzeki Can you run |
@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:
Which is the one causing issues actually! I just now noticed that one should install using
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 As a new user to these, I don't exactly know what the difference is between Hope this is helpful to someone else playing with these out there. Thanks for the help @jonsequitur ! |
Describe the bug
I just installed the c# jupyter kernel today for trying out. I can not get System.Text.Json namespace to import. If I do
using System.Text.Json;
I get this error
(1,19): error CS0234: The type or namespace name 'Json' does not exist in the namespace 'System.Text' (are you missing an assembly reference?)
I also tried to reference it as a nuget package, with
#r "nuget:System.Text.Json"
and it complete successful, but I still cannot use the namespace.
If I run
Environment.Version
from within the notebook I get 3.0.0 back. Anddotnet --version
shows 3.0.100 so I think I have the proper version installed.I have installed some other packages, for example MongoDB.Driver could be installed with nuget and imported with using just fine, so it seems its something specifically with this package.
Did this error occur while using
dotnet try
or online?dotnet-try
What kind of error was it?
Screenshots
Please complete the following:
The text was updated successfully, but these errors were encountered: