From 9caf3e8fc0f28dae57e7a75c0783638d2836ae4c Mon Sep 17 00:00:00 2001 From: William G Underwood <42812654+WGUNDERWOOD@users.noreply.github.com> Date: Tue, 30 Jan 2024 15:52:44 -0500 Subject: [PATCH] adding shell nix --- Makefile | 2 +- .../construction_diagrams.jl | 1 - replication/piet_diagram/piet_diagram.jl | 1 - replication/theorem_diagrams/theorem_diagrams.jl | 1 - replication/weather/weather_cv.jl | 1 - shell.nix | 15 +++++++++++++++ 6 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 shell.nix diff --git a/Makefile b/Makefile index 53ffaf6..f2f1763 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,3 @@ all: @rm -f src/*.cov - @julia --project --threads 6 make.jl + @julia --project --color=yes --threads 6 make.jl diff --git a/replication/construction_diagrams/construction_diagrams.jl b/replication/construction_diagrams/construction_diagrams.jl index 283dfd0..e2f9e13 100644 --- a/replication/construction_diagrams/construction_diagrams.jl +++ b/replication/construction_diagrams/construction_diagrams.jl @@ -1,7 +1,6 @@ using MondrianForests using PyPlot using Random -using Revise rcParams = PyPlot.PyDict(PyPlot.matplotlib."rcParams") rcParams["text.usetex"] = true diff --git a/replication/piet_diagram/piet_diagram.jl b/replication/piet_diagram/piet_diagram.jl index b6451b9..2815304 100644 --- a/replication/piet_diagram/piet_diagram.jl +++ b/replication/piet_diagram/piet_diagram.jl @@ -1,7 +1,6 @@ using MondrianForests using PyPlot using Random -using Revise rcParams = PyPlot.PyDict(PyPlot.matplotlib."rcParams") rcParams["text.usetex"] = true diff --git a/replication/theorem_diagrams/theorem_diagrams.jl b/replication/theorem_diagrams/theorem_diagrams.jl index 4898bb4..784f7b7 100644 --- a/replication/theorem_diagrams/theorem_diagrams.jl +++ b/replication/theorem_diagrams/theorem_diagrams.jl @@ -1,7 +1,6 @@ using MondrianForests using PyPlot using Random -using Revise rcParams = PyPlot.PyDict(PyPlot.matplotlib."rcParams") rcParams["text.usetex"] = true diff --git a/replication/weather/weather_cv.jl b/replication/weather/weather_cv.jl index 0f8afdd..ed75453 100644 --- a/replication/weather/weather_cv.jl +++ b/replication/weather/weather_cv.jl @@ -1,4 +1,3 @@ -using Revise using CSV using DataFrames using PyPlot diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..52ce8e7 --- /dev/null +++ b/shell.nix @@ -0,0 +1,15 @@ +let +pkgs = import { }; +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")' + ''; +}