3

Since very recently I have a problem where the output of %%prun is not displayed properly in VS Code Jupyter (all output is on one line instead of in a nicely formatted table).

I tried reloading the window and restarting Jupyter but the problem still appears.

What could be causing the problem?

Bug illustration

starball
  • 20,030
  • 7
  • 43
  • 238
Louis M
  • 4,036
  • 4
  • 21
  • 25

2 Answers2

0

The workaround I'm using at the moment is saving the %prun output to a separate file and inspecting that file.

%prun -T tmp.txt my_fn()
Ferdinando Randisi
  • 4,068
  • 6
  • 32
  • 43
0

This is a bug that got fixed: The output is not displayed in tabular form by using %%prun #11443. The fix's milestone was January 2023, which has since been released, and I just tested that it works.

starball
  • 20,030
  • 7
  • 43
  • 238