Failed to #r nuget from inside script referenced by import magic command
See original GitHub issueDescribe the bug
Notebook hangs when I try to reference Nuget package from imported script.
Repro
// test.csx
#r "nuget: Newtonsoft.Json"
// test.ipynb
#!import "test.csx"
Note
Seems like a regress. It worked previously, several months ago.
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the #!about
magic command. ):
- OS
- [ x] Windows 11
- Frontend
- [x ] Visual Studio Code
Workaround
downgrade to 1.0.416502
Version
.NET Interactive
© 2020 Microsoft Corporation
Version: 1.0.425803+1db2979099d0272660e1497cae9b9af1238db42f
Library version: 1.0.0-beta.23258.3+1db2979099d0272660e1497cae9b9af1238db42f
Build date: 2023-05-09T09:50:04.7411746Z
Issue Analytics
- State:
- Created 4 months ago
- Reactions:3
- Comments:6 (4 by maintainers)
Top Results From Across the Web
magic-commands.md - dotnet/interactive
The following magic commands are available within a C# language context. Command, Behavior. #i, Adds a NuGet source to the session. Subsequent #r...
Read more >NuGet add reference error while installing packages
I had this problem too, the fix that worked for me was: Delete all the folders inside of the packages folder. Update all...
Read more >PEP 722: Dependency specification for single-file scripts
I've just submitted PEP 722: Dependency specification for single-file scripts by pfmoore · Pull Request #3210 · python/peps · GitHub, ...
Read more >.NET Interactive with SQL!| .NET Notebooks in Visual ...
To change the language in a cell, you can either use a magic command in Jupyter (e.g. #!sql ) or the VS Code...
Read more >Importing Code in Polyglot Notebooks
It turns out that Polyglot Notebooks support importing NuGet packages via the #r magic command followed by the word nuget: and then the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will look into that!
We are working on that bug at the moment