Skip to content

Commit

Permalink
adding shell nix
Browse files Browse the repository at this point in the history
  • Loading branch information
WGUNDERWOOD committed Jan 30, 2024
1 parent 79f5c66 commit 9caf3e8
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
all:
@rm -f src/*.cov
@julia --project --threads 6 make.jl
@julia --project --color=yes --threads 6 make.jl
1 change: 0 additions & 1 deletion replication/construction_diagrams/construction_diagrams.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using MondrianForests
using PyPlot
using Random
using Revise

rcParams = PyPlot.PyDict(PyPlot.matplotlib."rcParams")
rcParams["text.usetex"] = true
Expand Down
1 change: 0 additions & 1 deletion replication/piet_diagram/piet_diagram.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using MondrianForests
using PyPlot
using Random
using Revise

rcParams = PyPlot.PyDict(PyPlot.matplotlib."rcParams")
rcParams["text.usetex"] = true
Expand Down
1 change: 0 additions & 1 deletion replication/theorem_diagrams/theorem_diagrams.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using MondrianForests
using PyPlot
using Random
using Revise

rcParams = PyPlot.PyDict(PyPlot.matplotlib."rcParams")
rcParams["text.usetex"] = true
Expand Down
1 change: 0 additions & 1 deletion replication/weather/weather_cv.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Revise
using CSV
using DataFrames
using PyPlot
Expand Down
15 changes: 15 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
let
pkgs = import <nixpkgs> { };
in pkgs.mkShell {
buildInputs = with pkgs; [
cacert
julia
python3Packages.matplotlib
texlive.combined.scheme-full
git
];
shellHook = ''
# run this to link Julia PyCall package to nixpkgs python3
#julia --color=yes -e 'using Pkg; ENV["PYTHON"]="${pkgs.python3}/bin/python3"; Pkg.build("PyCall")'
'';
}

0 comments on commit 9caf3e8

Please sign in to comment.