view @ 92:9cde0dc0699e default tip

author aka
date Wed, 27 Jun 2018 00:10:30 +0900
parents ee031a093708
line wrap: on
line source

# Minimal CbC kernel for Jupyter
It is CbC kernel for Jupyter. 

Referenced from

## Install

### Local Jupyter

CbC install
hg clone
mkdir build-gcc && cd build-gcc
../CbC_gcc/configure CFLAGS="-g3 -O0" \
             --prefix=/usr/ --disable-nls \
             --disable-bootstrap --enable-languages=c \
make && make install

after, kernel install.

hg clone
cd jupyter_CbC_kernel
pip3 install --upgrade pip jupyter ipykernel
pip3 install .
cd jupyter_CbC_kernel && install_CbC_kernel --user
cd ..
jupyter notebook

### Use with Docker (recommended)

hg clone
cd jupyter_CbC_kernel
docker build -t aka/jupyter_cbc_kernel .
docker run -p 8888:8888 --name jupyter_cbc_kernel aka/jupyter_cbc_kernel

< 略 >

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:


change host name "localhost".

and open above link  "http://localhost:8888/?token=934058629ebd810e26f1c37a3cbb350fbb8edb95fcf4e0bd&token=934058629ebd810e26f1c37a3cbb350fbb8edb95fcf4e0bd"

## Example of notebook


## Custom compilation flags

You can use custom compilation flags like so:

![Custom compulation flag](custom_flags.png?raw=true "Example of notebook using custom compilation flags")

Here, the `-lm` flag is passed so you can use the math library.

## License