Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install JS Node in Jupyter Notebook

I am trying to run Javascript in Jupyter Notebook (unless there is an equivalent notebook in JS where I can test my scripts easily) and for instance I want to run the following:

import pixiedust_node
%%node
var date = new Date();
print(date);

In order to install everything I tried:

pip install pixiedust , pip install pixiedust_node , conda install -c akode pixiedust , jupyter pixiedust install

and still, when I am trying to load the code in Jupyter, I am getting this:

enter image description here

and after trying this: conda install -c anaconda nodejs or even this: conda install -c conda-forge nodejs

like image 933
Datacrawler Avatar asked Sep 23 '19 13:09

Datacrawler


1 Answers

you can actually try to use https://github.com/n-riesco/ijavascript as the kernel for the notebook instead of using node over python

like image 74
grokked Avatar answered Oct 12 '22 08:10

grokked