Skip to content

Commit

Permalink
fix inspector installation in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashering committed Aug 1, 2019
1 parent 99739a3 commit faf2d78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ COPY . .
RUN git clean -ffxd
RUN npm install . --unsafe-perm --nodedir="/opt/graalvm-ce-19.0.2/jre/languages/js" --build-from-source
RUN git clone https://github.com/ipython-contrib/jupyter_contrib_nbextensions.git
RUN cd jupyter_contrib_nbextensions && git checkout tags/0.5.1
RUN pip3 install -e .
RUN cp -r ../varInspector src/jupyter_contrib_nbextensions/nbextensions/
RUN pip3 install -e jupyter_contrib_nbextensions
RUN cp -r varInspector jupyter_contrib_nbextensions/src/jupyter_contrib_nbextensions/nbextensions/
RUN jupyter contrib nbextensions install --user
RUN jupyter nbextension enable varInspector/main

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The Polyglot Jupyter Kernel is a [kernel for Jupyter notebooks](https://jupyter.

Make sure to [install](https://www.graalvm.org/downloads) GraalVM (latest tested version is v19.0.2) and ensure GraalVM's `node` and `npm` are in your `PATH`.

To install the kernel on linux follow these steps:
To install the kernel on Linux follow these steps:
```sh
# 0. download and setup GraalVM
# 1. install python and pip:
Expand Down Expand Up @@ -36,7 +36,7 @@ cd ./pp19-3-jupyter-kernel && npm install . --python=python2.7

Proceed by starting a jupyter notebook server (`jupyter notebook`), opening a web-browser on `localhost:8888`, and creating a new GraalNode.js notebook.

### Running with Docker
### Running IPolyglot with Docker

You may also choose to run IPolyglot with docker:

Expand All @@ -46,7 +46,7 @@ You may also choose to run IPolyglot with docker:
git clone https://github.com/hpi-swa-lab/pp19-3-jupyter-kernel.git
# 2. build an ipolyglot docker image
docker build --tag=ipolyglot .
# 3. run it! (you may choose a different port by changing 8888:<desired port>)
# 3. run it! (choose a different port by changing 8888:<desired port>)
docker run -p 8888:8888 ipolyglot
```

Expand Down

0 comments on commit faf2d78

Please sign in to comment.