Skip to content

HTML widgets of scikit-learn estimators break after kernel restart #16425

Open
@david-cortes

Description

@david-cortes

Environment data

  • VS Code version: 1.96.4
  • Jupyter Extension version (available under the Extensions sidebar): 2024.11.0
  • Python Extension version (available under the Extensions sidebar): 2024.22.2
  • OS (Windows | Mac | Linux distro) and version: linux (debian 12)
  • Python and/or Anaconda version: mamba
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Jupyter server running: Local

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Start a new interactive window.
  2. Import a scikit-learn estimator and print/display it, so that it would show its HTML widget.
  3. Restart the kernel.
  4. Repeat step 2.
  5. Click on the "i" icon on the HTML widget.

Expected behaviour

Should shrink the HTML widget (parameters are not displayed).

Actual behaviour

Enters into an infinite selection and deselection loop of the cell where this happened:

Image

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

XXX

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugnotebook-output

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions