gophernotes/README.md

57 lines
2.3 KiB
Markdown
Raw Normal View History

2016-01-23 14:19:24 -06:00
![alt tag](https://raw.githubusercontent.com/gophergala2016/gophernotes/master/files/gophernotes2.jpg)
2016-01-23 06:11:05 -06:00
# gophernotes - Go in Notebooks
2016-01-23 14:24:34 -06:00
`gophernotes` is a Go kernel for [Jupyter](http://jupyter.org/) and Apache Zeppelin notebooks. Finally, we can have a reliable and maintained way to use Go interactively and code in the browser. Go forth and do data science, or anything else interesting, with go notebooks!
This project came out of the [Gopher Gala](http://gophergala.com/) 2016. It is based on a REPL called [gore](https://github.com/motemen/gore) and on a, no longer maintained and self-described limited, ipython kernel call [iGo](https://github.com/takluyver/igo).
2016-01-23 06:12:06 -06:00
2016-01-23 15:48:35 -06:00
## Screenshots/Examples:
![alt tag](https://raw.githubusercontent.com/gophergala2016/gophernotes/master/files/screencast.gif)
2016-01-23 15:51:10 -06:00
Examples:
- [Simple Printing and Channels Example](https://github.com/gophergala2016/gophernotes/blob/master/examples/Simple-Example.ipynb)
2016-01-23 16:59:40 -06:00
- [Pattern Recognition with Golearn](https://github.com/gophergala2016/gophernotes/blob/master/examples/Pattern-Recognition.ipynb)
2016-01-23 15:51:10 -06:00
2016-01-23 16:02:31 -06:00
## Jupyter Installation/Usage
- Make sure jupyter notebook is installed. See [here](http://jupyter.readthedocs.org/en/latest/install.html) for more details.
- Get the kernel:
2016-01-23 16:03:49 -06:00
2016-01-23 16:02:31 -06:00
```
go get github.com/gophergala2016/gophernotes
```
2016-01-23 16:03:49 -06:00
2016-01-23 16:02:31 -06:00
- Create a directory for the new kernel config:
2016-01-23 16:03:49 -06:00
2016-01-23 16:02:31 -06:00
```
mkdir -p ~/.ipython/kernels/gophernotes
```
2016-01-23 16:09:45 -06:00
- Copy the kernel config into the `.ipython` directory:
```
cp -r $GOPATH/src/github.com/gophergala2016/gophernotes/kernel/* ~/.ipython/kernels/gophernotes
```
- Start the jupyter notebook:
```
jupyter notebook
```
- Select `Golang` from the `New` drop down menu.
- Have Fun!
Possible Issues:
- Depending on your environment, you may need to manually change the path to the `gophernotes` executable in `kernel/kernel.json` before copying it to `~/.ipython/kernels/gophernotes`. You can put the **full path** to the `gophernotes` executable here, and you shouldn't have any further issues.
2016-01-23 09:12:11 -06:00
## Gopher Gala Status:
2016-01-23 06:12:06 -06:00
2016-01-23 09:12:25 -06:00
- ~~Rewrite of some of the gore functionality to process messages from the notebook.~~
2016-01-23 11:04:48 -06:00
- ~~Implement more intuitive error handling in the notebook, test the suite of functionality in the Jupyter notebook.~~
2016-01-23 15:02:47 -06:00
- ~~Refactor, loggings~~
- Examples, screenshots, installation
- Troubleshoot errors, unit testing