Help us understand the problem. What is going on with this article?

[メモ] Jupyter - Kernel追加(C, nodejs)

More than 3 years have passed since last update.

 ちょいメモ

  • 前々前回からの続き
  • Rは、v3.1(Raspbian jessieのパッケージのやつ)だとうごかない。3.2か、3.3にしないといけない。
  • ホントに必要になったら、検証して、更新する。

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
  };
...
mt08
ツイッターアカウントと紐づけてみた。[2019-11-26]
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away