.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.8k
stars
374
forks
source link
Fail to use dotnet interactive in Fabric 1.2 runtime #3476
When I install dotnet interactive jupyter kernel in spark runtime1.2 and use "jupyter nbconvert --to notebook --execute /tmp/pwsh_test.ipynb" to run ipynb file
I got an error:
[NbConvertApp] Converting notebook /tmp/pwsh_test.ipynb to notebook ==Unhandled exception: System.IO.IOException: Failed to bind to address http://10.0.64.6:2048: address already in use. ---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use ---> System.Net.Sockets.SocketException (98): Address already in use at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
But it's fine in local vm (mariner)
And I checked the port occupied, I didn't even find any process that occupied it.:
I uploaded my test notebook, and I think you should be able to test it in any environment and reproduce it steadily.
Test Powershell kernel.ipynb.zip
Only I found was that when issue repro, The output of ifconfig has more screenshot lines.
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):
OS
[ ] Windows 11
[ ] Windows 10
[ ] macOS
[X] Linux (mariner)
[ ] iOS
[ ] Android
Browser
[X] Chrome
[ ] Edge
[ ] Firefox
[ ] Safari
Frontend
[X] Jupyter Notebook
[ ] Jupyter Lab
[ ] nteract
[ ] Visual Studio Code
[ ] Visual Studio Code Insiders
[ ] Visual Studio
[ ] Other (please specify)
Screenshots
If applicable, add screenshots to help explain your problem.
Describe the bug
Please provide as much information as you can.
When I install dotnet interactive jupyter kernel in spark runtime1.2 and use "jupyter nbconvert --to notebook --execute /tmp/pwsh_test.ipynb" to run ipynb file
I got an error:
[NbConvertApp] Converting notebook /tmp/pwsh_test.ipynb to notebook ==Unhandled exception: System.IO.IOException: Failed to bind to address http://10.0.64.6:2048: address already in use. ---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use ---> System.Net.Sockets.SocketException (98): Address already in use at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
But it's fine in local vm (mariner)
And I checked the port occupied, I didn't even find any process that occupied it.:![image](https://github.com/dotnet/interactive/assets/128118209/f2fe9595-52ca-4603-98c5-dbdf21ab3974)
I uploaded my test notebook, and I think you should be able to test it in any environment and reproduce it steadily. Test Powershell kernel.ipynb.zip
Only I found was that when issue repro, The output of ifconfig has more screenshot lines.
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the
#!about
magic command. ):Screenshots
If applicable, add screenshots to help explain your problem.