You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
magicpatch-install
Error: JavaScript Jupyter kernel not found. Try installing or re-installing IJavascript?
at C:\Users...\AppData\Roaming\npm\node_modules\magicpatch\bin\magicPatchInstall.js:30:15
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I believe I have IJavascript installed and working. I can run JS code in my notebook in VSCode by selecting Javascript Kernel.
Found the problem. This change in lib\magics\report\jupyter.js:54 makes it work:
// let match = line.match(/^\s+(?<kernel>\w+)\s+(?<path>\/.*)$/);
let match = line.match(/^\s+(?<kernel>\w+)\s+(?<path>[\w\/].*)/);
(apart from adding \w, removing $ was also required for reasons beyond me.)
The regex used was based on:
// 'jupyter kernelspec list' should look like:
// Available kernels:
// javascript /Users/ampower/Library/Jupyter/kernels/javascript
// javascriptex /Users/ampower/Library/Jupyter/kernels/javascriptex
// python3 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/share/jupyter/kernels/python3
However on my Windows it looks like
jupyter kernelspec list
Available kernels:
javascript C:\Users\me\AppData\Roaming\jupyter\kernels\javascript
python3 C:\tools\Anaconda3\share\jupyter\kernels\python3
Please feel free to use this as a patch. I'm not confident in my Regex so I'd double check if it still works in *nix.
Getting this error:
I believe I have IJavascript installed and working. I can run JS code in my notebook in VSCode by selecting Javascript Kernel.
I'm on Windows and have followed the Anaconda method https://github.com/n-riesco/ijavascript#windows-anaconda-distribution to install IJavascript.
I'm running
magicpatch-install
in an elevated Anaconda shell.In the file
magicPatchInstall.js:30
I loggedjupyterConfig, kernels
and gotDoes this make it seem that I don't have IJavascript installed properly? But then how am I able to use it in VSCode..? And what could I do?
The text was updated successfully, but these errors were encountered: