Javascript in VSCode Jupyter notebook not showing output

Viewed 859

I'm using VS Code, and was wondering if the Jupyter Notebook support also supports Javascript. Looking around online it looks like it should, but I am unable to produce any output.

This python code shows output "test":

print("test")

This JS code does not show any output:

%%javascript
console.log("test");

This JS code also does not show any output:

%%javascript
element.text("test");

And because I'm desparate, I've also tried this:

%%javascript
element.text = "test";

I have no clue what it is I am doing wrong...

VS Code, Python extension and Jupyter extension are all up to date.

2 Answers

try using:

%%script node   
console.log("test");
Related