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.

ipykernel 6.0.1 breaks interactive debugger

See original GitHub issue

Issue Type: Bug

I am working with anaconda as my Python distro and in my environment I updated ipykernel to the 6.0.1 version today.

As soon as I did this the interactive debbugger started popping out the following error: Could not load source ‘c:\Users\david\AppData\Local\Temp\ipykernel_17508\2969028694.py’: Unable to retrieve source for C:\Users\david\AppData\Local\Temp\ipykernel_17508\2969028694.py.

Downgraded ipykernel to 5.5.5 all went back to normal.

Something in this upgrade is breaking the debugger when running through the interactive interpreter.

Extension version: 2021.6.999662501 VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:07.755Z) OS version: Windows_NT x64 10.0.19043 Restricted Mode: No

System Info
Item Value
CPUs Intel® Core™ i7-9750H CPU @ 2.60GHz (12 x 2592)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.82GB (7.02GB free)
Process Argv . --crash-reporter-id b5fdfc3b-a477-44a1-8dbc-9ec2aadb185b
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt700cf:30270857
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30311713
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255:30323308
vscorehov:30309549
vscod805cf:30301675
pythonvspyt200cf:30331938
vscextlangct:30333562
binariesv615:30325510
aatestflight:30331711
bridge0702cf:30333156

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
IanMatthewHuffcommented, Jul 6, 2021

@HDavidEspinosa Thanks, just making sure that we had the same scenario. Could you grab those logs from the Jupyter output section? I think that would need to see those next, since the repro that I currently see is different.

0reactions
DonJayamannecommented, Jul 16, 2021

How to test:

  • Install Python
  • WebView Interactive window (Old version of IPyKernel)
    • python -m pip uninstall ipykernel ipython debugpy
    • python -m pip install ipython==7.15.0 ipykernel==5.5.5
    • Debug interactive window
  • WebView Interactive window (New version of IPyKernel)
    • python -m pip uninstall ipykernel ipython debugpy
    • python -m pip install ipython
    • Debug interactive window
  • Do the same for Native Interactive window
  • How to switch between native & webview interactive
    • VS Code Insiders
      • Native Interactive is the default experience,
      • To disable in settings
      • "jupyter.enableNativeInteractiveWindow": false,
      • "python.insidersChannel": "off",
    • VS Code Stable
      • To disable in settings
      • "jupyter.enableNativeInteractiveWindow": false,
      • "python.insidersChannel": "off",
      • To enanle in settings
      • "jupyter.enableNativeInteractiveWindow": true,
      • "python.insidersChannel": "daily",
Read more comments on GitHub >

github_iconTop Results From Across the Web

Changes in IPython kernel - Read the Docs
IPykernel 6 should contain all changes of the 5.x series, in addition to the following non-exhaustive changes. Support for the debugger protocol, ...
Read more >
IPython Kernel 6.19.2 documentation
Support for the debugger protocol, when using JupyterLab , RetroLab or any frontend supporting the debugger protocol you should have access to the...
Read more >
Built-in magic commands — IPython 8.7.0 documentation
Activate the interactive debugger. ... This way, you can set a break point, to step through the code from the point. ... Set...
Read more >
IPython Kernel Documentation
Add explicit encoding to open calls in debugger #807 (@dlukes) ... Make ipykernel work without debugpy #767 (@frenzymadness) ... 6.0.1.
Read more >
IPython reference — IPython 8.7.0 documentation
pdb, the Python debugger, is a powerful interactive debugger which allows you to step through code, set breakpoints, watch variables, etc. IPython makes...
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