question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to #r nuget from inside script referenced by import magic command

See original GitHub issue

Describe 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:closed
  • Created 4 months ago
  • Reactions:3
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
colombodcommented, May 9, 2023

Will look into that!

1reaction
colombodcommented, May 15, 2023

We are working on that bug at the moment

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found