n-riesco / ijavascript

IJavascript is a javascript kernel for the Jupyter notebook
Other
2.19k stars 185 forks source link

No output when using %%javascript magic #274

Closed tyler71 closed 1 year ago

tyler71 commented 2 years ago

First line was run using the ipykernel kernel using %%javascript magic. I expect a Hello World output. Second line was run using the ijavascript kernel.

CopyQ xtzjLU

I installed it with the following command in a Dockerfile:

RUN npm install -g ijavascript \
 && ijsinstall --install=global --spec-path=full
n-riesco commented 2 years ago

My understanding is the %%javascript runs your code in the jupyter notebook console (for most browsers, press Command+Option+J (Mac) or Control+Shift+J (Windows, Linux, ChromeOS) to open the console).

You could try and replace console.log with alert to see what I mean.

n-riesco commented 1 year ago

Closing as this isn't an ijavascript-related issue.