ちょいメモ
C
sudo pip install jupyter-c-kernel
git clone https://github.com/brendan-rius/jupyter-c-kernel.git
cd jupyter-c-kernel
sudo jupyter-kernelspec install c_spec/
nodejs
sudo apt-get install npm nodejs-legacy libzmq-dev
git clone https://github.com/notablemind/jupyter-nodejs.git
cd jupyter-nodejs
mkdir -p ~/.ipython/kernels/nodejs/
npm install && node install.js
make
ipython console --kernel nodejs
REPLACE_INVALID_UTF8
がないとかいうエラーの回避
# Raspbianのパッケージのような古いnodejs(v0.10?)の場合。
-
REPLACE_INVALID_UTF8 = 0
を追加(一行前に,
入れる)
/usr/include/nodejs/deps/v8/include/v8.h
...
enum WriteOptions {
NO_OPTIONS = 0,
HINT_MANY_WRITES_EXPECTED = 1,
NO_NULL_TERMINATION = 2,
PRESERVE_ASCII_NULL = 4,
REPLACE_INVALID_UTF8 = 0
};
...