Mercurial > hg > Members > aka > jupyter_CbC_kernel
annotate README.md @ 92:9cde0dc0699e default tip
fix README.md
author | aka |
---|---|
date | Wed, 27 Jun 2018 00:10:30 +0900 |
parents | ee031a093708 |
children |
rev | line source |
---|---|
91 | 1 # Minimal CbC kernel for Jupyter |
2 It is CbC kernel for Jupyter. | |
0 | 3 |
91 | 4 Referenced from https://github.com/brendan-rius/jupyter-c-kernel |
5 | |
6 ## Install | |
7 | |
8 ### Local Jupyter | |
13 | 9 |
92 | 10 |
11 | |
12 CbC install | |
13 ``` | |
14 hg clone http://www.cr.ie.u-ryukyu.ac.jp/hg/CbC/CbC_gcc/ | |
15 mkdir build-gcc && cd build-gcc | |
16 ../CbC_gcc/configure CFLAGS="-g3 -O0" \ | |
17 --prefix=/usr/ --disable-nls \ | |
18 --disable-bootstrap --enable-languages=c \ | |
19 --enable-checking=tree,rtl,assert,types | |
20 | |
21 make && make install | |
22 ``` | |
23 | |
24 after, kernel install. | |
25 | |
91 | 26 ``` |
27 hg clone http://www.cr.ie.u-ryukyu.ac.jp/hg/Members/aka/jupyter_CbC_kernel | |
92 | 28 cd jupyter_CbC_kernel |
29 pip3 install --upgrade pip jupyter ipykernel | |
30 pip3 install . | |
31 cd jupyter_CbC_kernel && install_CbC_kernel --user | |
32 cd .. | |
91 | 33 jupyter notebook |
34 ``` | |
35 | |
36 ### Use with Docker (recommended) | |
13 | 37 |
91 | 38 ``` |
39 hg clone http://www.cr.ie.u-ryukyu.ac.jp/hg/Members/aka/jupyter_CbC_kernel | |
40 cd jupyter_CbC_kernel | |
41 docker build -t aka/jupyter_cbc_kernel . | |
42 docker run -p 8888:8888 --name jupyter_cbc_kernel aka/jupyter_cbc_kernel start-notebook.sh | |
16
63084d5da27c
Update README.md after #2 and to move the requirements to the correct section
Brendan Rius <brendan@omixy.com>
parents:
13
diff
changeset
|
43 |
91 | 44 < 略 > |
69 | 45 |
91 | 46 Copy/paste this URL into your browser when you connect for the first time, |
47 to login with a token: | |
48 http://0205e0a0e8b6:8888/?token=934058629ebd810e26f1c37a3cbb350fbb8edb95fcf4e0bd&token=934058629ebd810e26f1c37a3cbb350fbb8edb95fcf4e0bd | |
26
06e1c3c43532
Add alternative installation using wget and sh
Manoel Vilela <manoel_vilela@engineer.com>
parents:
18
diff
changeset
|
49 |
91 | 50 ``` |
51 | |
52 change host name "localhost". | |
53 | |
54 and open above link "http://localhost:8888/?token=934058629ebd810e26f1c37a3cbb350fbb8edb95fcf4e0bd&token=934058629ebd810e26f1c37a3cbb350fbb8edb95fcf4e0bd" | |
55 | |
6 | 56 |
57 ## Example of notebook | |
58 | |
91 | 59 ![Example](Example.jpg) |
19 | 60 |
63 | 61 ## Custom compilation flags |
62 | |
63 You can use custom compilation flags like so: | |
64 | |
65 ![Custom compulation flag](custom_flags.png?raw=true "Example of notebook using custom compilation flags") | |
66 | |
67 Here, the `-lm` flag is passed so you can use the math library. | |
68 | |
19 | 69 ## License |
70 | |
41 | 71 [MIT](LICENSE.txt) |