2016-03-25 11:50:40 +00:00
|
|
|
# Minimal C kernel for Jupyter
|
|
|
|
|
2016-04-18 19:52:38 -07:00
|
|
|
## Use with Docker (recommended)
|
2016-03-26 15:39:37 +00:00
|
|
|
|
|
|
|
* `docker pull brendanrius/jupyter-c-kernel`
|
|
|
|
* `docker run -d -p 8888:8888 brendanrius/jupyter-c-kernel`
|
|
|
|
* Go to [http://localhost:8888](http://localhost:8888) (or your VM address if you are using Docker Machine)
|
|
|
|
|
2016-04-18 19:52:38 -07:00
|
|
|
## Manual installation
|
|
|
|
|
2016-04-18 19:53:50 -07:00
|
|
|
* Make sure you have the following requirements installed:
|
|
|
|
* gcc
|
|
|
|
* jupyter
|
2016-04-30 11:13:20 +01:00
|
|
|
* python 3
|
2016-04-18 19:53:50 -07:00
|
|
|
* pip
|
2016-04-28 23:29:12 -03:00
|
|
|
|
|
|
|
### Step-by-step:
|
2016-03-26 14:56:17 +00:00
|
|
|
* `pip install jupyter-c-kernel`
|
2017-08-10 17:00:32 +02:00
|
|
|
* `install_c_kernel`
|
2016-04-18 19:55:41 -07:00
|
|
|
* `jupyter-notebook`. Enjoy!
|
2016-03-25 14:34:14 +00:00
|
|
|
|
2016-04-28 23:29:12 -03:00
|
|
|
### Easy installation for Unix user:
|
|
|
|
|
2016-06-06 15:52:40 +01:00
|
|
|
* `wget -O - https://raw.githubusercontent.com/brendan-rius/jupyter-c-kernel/master/install.sh | sh`
|
2016-04-28 23:29:12 -03:00
|
|
|
|
2016-03-25 14:34:14 +00:00
|
|
|
## Example of notebook
|
|
|
|
|
|
|
|

|
2016-04-29 09:49:08 +01:00
|
|
|
|
2016-04-30 21:44:41 +01:00
|
|
|
## Contributing
|
|
|
|
|
2016-06-08 11:29:29 +01:00
|
|
|
The docker image installs the kernel in editable mode, meaning that you can
|
|
|
|
change the code in real-time in Docker. For that, just run the docker box like
|
|
|
|
that:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/brendan-rius/jupyter-c-kernel.git
|
|
|
|
cd jupyter-c-kernel
|
2016-06-08 11:44:17 +01:00
|
|
|
docker run -v $(pwd):/jupyter/jupyter_c_kernel/ -p 8888:8888 brendanrius/jupyter-c-kernel
|
2016-06-08 11:29:29 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
This clones the source, run the kernel, and binds the current folder (the one
|
|
|
|
you just cloned) to eh corresponding folder in Docker.
|
|
|
|
Now, if you change the source, it will be reflected in [http://localhost:8888](http://localhost:8888)
|
|
|
|
instantly. Do not forget to click "restart" the kernel on the page as it does
|
|
|
|
not auto-restart.
|
|
|
|
|
|
|
|
### Version control
|
|
|
|
|
2016-06-06 15:52:40 +01:00
|
|
|
Create branches named `issue-X` where `X` is the number of the issue.
|
2016-04-30 21:44:41 +01:00
|
|
|
Rebase instead of merge.
|
|
|
|
|
2016-04-29 09:49:08 +01:00
|
|
|
## License
|
|
|
|
|
2016-06-06 15:52:40 +01:00
|
|
|
[MIT](LICENSE.txt)
|