Skip to content

element variable not exposed in javascript magic environment #17116

@kiliansinger

Description

@kiliansinger

Environment data

  • VS Code version: ms-toolsai.jupyter
  • Jupyter Extension version (available under the Extensions sidebar): ms-toolsai.jupyter
  • OS (Windows | Mac | Linux distro) and version: all
  • Python and/or Anaconda version: all
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): all
  • Jupyter server running: Local

Expected behaviour

%%js
element.setAttribute('style', 'white-space: pre;');console.log=function(text){element.textContent+=text+"\n"}
console.log("Great extension!")

Output: Great extension!

Actual behaviour

%%js
element.setAttribute('style', 'white-space: pre;');console.log=function(text){element.textContent+=text+"\n"}
console.log("Great extension!")

Output: ""

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugoutput-rendererverification-foundIssue verification failed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions