Skip to content

Commit

Permalink
version bump and example dockerfile for polars run jupyter
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Jul 30, 2020
1 parent 17d95aa commit ae9ff42
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM rustlang/rust:nightly-buster-slim
# Let's you run polars from jupyter. Compilation will happen at first run
# and will take some time.

RUN apt-get update \
&& apt-get install libssl-dev pkg-config cmake jupyter-notebook -y \
&& cargo install evcxr_jupyter \
&& evcxr_jupyter --install \
# cache compilations
&& cargo install sccache \
&& rm -rf /var/lib/apt/lists/*

COPY polars /polars
RUN mkdir --parents ~/.config/evcxr \
&& echo ':dep polars = { path = "/polars" }' > ~/.config/evcxr/init.evcxr

CMD [ "bash", "-c", "jupyter-notebook --no-browser --ip=0.0.0.0 --allow-root --NotebookApp.token=''" ]
2 changes: 1 addition & 1 deletion polars/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polars"
version = "0.1.0"
version = "0.2.0"
authors = ["ritchie46 <ritchie46@gmail.com>"]
edition = "2018"
license = "MIT"
Expand Down

0 comments on commit ae9ff42

Please sign in to comment.