Skip to content

Update to Version 1 - gomacro, new docs, and more #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
Sep 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e779a2a
initial commit version 1
dwhitena Jul 22, 2017
328216c
get v1 compiling and interacting with Jupyter
dwhitena Aug 1, 2017
d5844d3
get printing working and capture stdout
dwhitena Aug 2, 2017
8b938db
get error messages printing back to the notebook
dwhitena Aug 4, 2017
64a2d66
add vendor and dep files
dwhitena Aug 4, 2017
c54fc33
Update and rename LICENSE.md to LICENSE
dwhitena Aug 4, 2017
efb80d8
Add tests for the actual Kernel
dwhitena Aug 30, 2017
0e04bea
Wrap common message construction patterns to clean up the jupyter
SpencerPark Aug 26, 2017
825aefd
Update messages to the 5.0 spec and encapsulate.
SpencerPark Aug 26, 2017
e287c99
Handle errors from publish messages, clean up protocol wrappers, and
SpencerPark Sep 8, 2017
1d4547e
Add 'date' and required 'version' field to the message header
SpencerPark Sep 12, 2017
f75e44f
Remove unused types/methods and clean up the messages interface.
SpencerPark Sep 12, 2017
b8090e3
Merge pull request #70 from SpencerPark/jupyter-v5-protocol
dwhitena Sep 12, 2017
1210b4c
improve logging in the the kernel tests
dwhitena Sep 12, 2017
6050317
Create a test jupyter client for capturing interaction with the kerne…
SpencerPark Sep 13, 2017
01f2b46
Test that an uncaught panic produces the proper error messages
SpencerPark Sep 14, 2017
922e21e
Reformat kernel_test.
SpencerPark Sep 15, 2017
aee1cad
Fix kernel_test lint issues
SpencerPark Sep 18, 2017
b615ee7
Merge pull request #74 from SpencerPark/kernel-tests/panic
dwhitena Sep 18, 2017
110693d
Update the Dockerfile
dwhitena Sep 18, 2017
3b40f3f
add DS dockerfile, update vendored gomacro
dwhitena Sep 19, 2017
44fad8d
add contributors
dwhitena Sep 19, 2017
69792d8
update readme intro
dwhitena Sep 19, 2017
eee56d3
fix image links in README
dwhitena Sep 19, 2017
53a8e59
new screencasts
dwhitena Sep 19, 2017
ba012ea
update README gif format
dwhitena Sep 19, 2017
5ebd7b0
new example and new install docs
dwhitena Sep 20, 2017
eeed976
README formatting
dwhitena Sep 20, 2017
52ea4cf
README formatting
dwhitena Sep 20, 2017
6d457eb
add Mac install
dwhitena Sep 20, 2017
b8382a3
add toc to readme
dwhitena Sep 20, 2017
df7cfc9
fix linting
dwhitena Sep 20, 2017
5e0d919
update Mac/Windows info
dwhitena Sep 20, 2017
2040e26
clarify named imports
dwhitena Sep 20, 2017
1081985
update windows build for new org
dwhitena Sep 20, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 30 additions & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This is the official list of people who can contribute
# (and typically have contributed) code to the gophernotes
# repository.
#
# Names should be added to this file only after verifying that
# the individual or the individual's organization has agreed to
# the appropriate Contributor License Agreement, found here:
#
# http://code.google.com/legal/individual-cla-v1.0.html
# http://code.google.com/legal/corporate-cla-v1.0.html
#
# The agreement for individuals can be filled out on the web.
#
# Names should be added to this file like so:
# Name <email address>
#
# Please keep the list sorted.

Bobby Norton <[email protected]>
Dan Kortschak <[email protected]>
Daniel Whitenack <[email protected]>
Fransesc Campoy <[email protected]>
Harry Moreno <[email protected]>
Josh Cheek <[email protected]>
Kevin Burke <[email protected]>
Matthew Steffen <[email protected]>
Sebastien Binet <[email protected]>
Spencer Park <[email protected]>
Thomas Kluyver <[email protected]>
Yang Yang <[email protected]>
60 changes: 40 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,44 @@
FROM golang
FROM alpine:3.5
MAINTAINER dwhitena

# dependencies
RUN apt-get update && \
apt-get install -y pkg-config libzmq3-dev build-essential python3-pip && \
pip3 install --upgrade pip
# Add gophernotes
ADD . /go/src/github.com/gopherdata/gophernotes/

# set up golang
ENV PATH /usr/local/go/bin:$PATH
ENV GOPATH /go
ENV PATH $GOPATH/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"

# install gophernotes
RUN go get golang.org/x/tools/cmd/goimports
RUN go get -tags zmq_3_x github.com/gopherds/gophernotes
RUN mkdir -p ~/.ipython/kernels/gophernotes
RUN cp -r $GOPATH/src/github.com/gopherds/gophernotes/kernel/* ~/.ipython/kernels/gophernotes

# install jupyter
RUN pip3 install jupyter
# Install Jupyter and gophernotes.
RUN set -x \
# install python and dependencies
&& apk update \
&& apk --no-cache add \
ca-certificates \
python3 \
su-exec \
gcc \
git \
py3-zmq \
pkgconfig \
zeromq-dev \
musl-dev \
&& pip3 install --upgrade pip \
&& ln -s /usr/bin/python3.5 /usr/bin/python \
## install Go
&& apk --update-cache --allow-untrusted \
--repository http://dl-4.alpinelinux.org/alpine/edge/community \
--arch=x86_64 add \
go \
## jupyter notebook
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
&& pip3 install jupyter notebook \
## install gophernotes
&& GOPATH=/go go install github.com/gopherdata/gophernotes \
&& cp /go/bin/gophernotes /usr/local/bin/ \
&& mkdir -p ~/.local/share/jupyter/kernels/gophernotes \
&& cp -r /go/src/github.com/gopherdata/gophernotes/kernel/* ~/.local/share/jupyter/kernels/gophernotes \
## clean
&& find /usr/lib/python3.5 -name __pycache__ | xargs rm -r \
&& rm -rf \
/root/.[acpw]* \
ipaexg00301* \
&& rm -rf /var/cache/apk/*

EXPOSE 8888
CMD ["jupyter", "notebook"]
CMD [ "jupyter", "notebook", "--no-browser", "--allow-root", "--ip=0.0.0.0" ]
66 changes: 66 additions & 0 deletions Dockerfile.DS
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
FROM alpine:3.5
MAINTAINER dwhitena

# Add gophernotes
ADD . /go/src/github.com/gopherdata/gophernotes/

# Install Jupyter and gophernotes.
RUN set -x \
# install python and dependencies
&& apk update \
&& apk --no-cache add \
ca-certificates \
python3 \
su-exec \
gcc \
g++ \
git \
py3-zmq \
pkgconfig \
zeromq-dev \
musl-dev \
mercurial \
&& pip3 install --upgrade pip \
&& cp /usr/bin/python3.5 /usr/bin/python \
## install Go
&& apk --update-cache --allow-untrusted \
--repository http://dl-4.alpinelinux.org/alpine/edge/community \
--arch=x86_64 add \
go \
## jupyter notebook
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \
&& pip3 install jupyter notebook \
## install gophernotes
&& GOPATH=/go go install github.com/gopherdata/gophernotes \
&& cp /go/bin/gophernotes /usr/local/bin/ \
&& mkdir -p ~/.local/share/jupyter/kernels/gophernotes \
&& cp -r /go/src/github.com/gopherdata/gophernotes/kernel/* ~/.local/share/jupyter/kernels/gophernotes \
## get the relevant Go packages
&& go get -insecure gonum.org/v1/plot/... \
&& go get -insecure gonum.org/v1/gonum/... \
&& go get github.com/kniren/gota/... \
&& go get github.com/sajari/regression \
&& go get github.com/sjwhitworth/golearn/... \
&& go get -insecure go-hep.org/x/hep/csvutil/... \
&& go get -insecure go-hep.org/x/hep/fit \
&& go get -insecure go-hep.org/x/hep/hbook \
&& go get github.com/montanaflynn/stats \
&& go get github.com/boltdb/bolt \
&& go get github.com/patrickmn/go-cache \
&& go get github.com/chewxy/math32 \
&& go get github.com/chewxy/hm \
&& go get github.com/chewxy/vecf64 \
&& go get github.com/chewxy/vecf32 \
&& go get github.com/awalterschulze/gographviz \
&& go get github.com/leesper/go_rng \
&& go get github.com/pkg/errors \
&& go get github.com/stretchr/testify/assert \
## clean
&& find /usr/lib/python3.5 -name __pycache__ | xargs rm -r \
&& rm -rf \
/root/.[acpw]* \
ipaexg00301* \
&& rm -rf /var/cache/apk/*

EXPOSE 8888
CMD [ "jupyter", "notebook", "--no-browser", "--allow-root", "--ip=0.0.0.0" ]
47 changes: 0 additions & 47 deletions Godeps/Godeps.json

This file was deleted.

5 changes: 0 additions & 5 deletions Godeps/Readme

This file was deleted.

33 changes: 33 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
branch = "master"
name = "github.com/cosmos72/gomacro"

[[constraint]]
branch = "master"
name = "github.com/nu7hatch/gouuid"

[[constraint]]
branch = "master"
name = "github.com/pebbe/zmq4"
Loading