Skip to content

Commit c46ad5c

Browse files
committed
with PyCall
1 parent 08ec8d7 commit c46ad5c

13 files changed

+4262
-2952
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM julia:1.7.3
1+
FROM julia:1.9.2
22

33
# HTTP port
44
EXPOSE 8000
@@ -21,7 +21,9 @@ ENV JULIA_PKG_DEVDIR=/home
2121

2222
# Initialize the julia project environment that will be used to run the bind server.
2323
# RUN julia --project=/home/MLCourse -e "import Pkg; Pkg.instantiate(); Pkg.precompile(); using MLCourse"
24-
RUN julia -e 'import Pkg; Pkg.activate(joinpath(Pkg.devdir(), "MLCourse")); Pkg.instantiate()'
24+
RUN julia -e 'import Pkg; Pkg.activate(joinpath(Pkg.devdir(), "MLCourse")); Pkg.instantiate(); using CondaPkg; CondaPkg.add.(["numpy", "pandas", "matplotlib", "scikit-learn", "openml"]);'
25+
26+
ENV PYTHON=/home/MLCourse/.CondaPkg/env/bin/python
2527

2628
# The "default command" for this docker thing.
2729
CMD ["julia", "--project=/home/MLCourse", "-e", "import PlutoSliderServer; PlutoSliderServer.run_git_directory(\".\"; Export_baked_notebookfile = false, SliderServer_port=8000, SliderServer_exclude = [\"extras/transfer_learning.jl\", \"extras/generative_models.jl\"], Export_exclude = [\"extras/transfer_learning.jl\", \"extras/generative_models.jl\"], SliderServer_host=\"0.0.0.0\", Export_slider_server_url=\"https://bio322.epfl.ch/\", Export_binder_url = \"https://mybinder.org/v2/gh/jbrea/MLCourse/binder\")"]

0 commit comments

Comments
 (0)