Skip to content

Scalene output not shown in jupyter notebook in VSCode #951

@skwde

Description

@skwde

Describe the bug
Magic output does not show (except %%scalene -help)

To Reproduce
Steps to reproduce the behavior:

  1. Download https://github.com/plasma-umass/scalene/blob/master/docs/scalene-demo.ipynb
  2. Start in VSCode
  3. Run Cells from downloaded notebook

I guess this is related to #915

Expected behavior
Show --cli output

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Desktop (please complete the following information):

  • OS: debian trixie (devcontainer on remote Rocky9 machine)
  • Browser: VSCode
  • Version: 1.104.0

If you have not yet tried with the repository version (python3 -m pip install git+https://github.com/plasma-umass/scalene), please try that before reporting.

Additional context

Trying to provide the minimal environment file where the problem occurs led to #915 even though I use 1.5.54.

I used following environment file:

name: test
channels:
  - conda-forge
  - nodefaults
dependencies:
  - python>=3,<3.13
  - numpy
  - jupyter
  - pip
  - pip:
    - scalene

Then the line which shows no output will report the error mentioned in the linked issue which was fixed(?!) in 1.5.53.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions