Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrea committed Aug 23, 2024
1 parent 50aa5d3 commit 768054c
Show file tree
Hide file tree
Showing 21 changed files with 848 additions and 641 deletions.
5 changes: 3 additions & 2 deletions CondaPkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ plotly = ""
seaborn = ""
tqdm = ""
pandas = ""
openml = ""
mkl = ""
openml = "0.14.2"
xgboost = ""
skorch = ""
pytorch = ""
numpy = ""
numpy = "1.26.4"
umap-learn = ""
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM julia:1.9.3
FROM julia:1.10.4

# HTTP port
EXPOSE 8000
Expand All @@ -20,10 +20,14 @@ ENV html_export=true
ENV JULIA_PKG_DEVDIR=/home
ENV DISABLE_CACHE_SAVE=
COPY --chown=MLCourse notebooks/.cache notebooks/.cache
COPY --chown=MLCourse flies flies

# Initialize the julia project environment that will be used to run the bind server.
# RUN julia --project=/home/MLCourse -e "import Pkg; Pkg.instantiate(); Pkg.precompile(); using MLCourse"
RUN julia -e 'import Pkg; Pkg.activate(joinpath(Pkg.devdir(), "MLCourse")); Pkg.instantiate(); using Pluto, MLCourse, MLJ, MLJLinearModels; session = Pluto.ServerSession(); session.options.server.port = 40404; session.options.server.launch_browser = false; session.options.security.require_secret_for_access = false; t = @async Pluto.run(session); sleep(30); @async Base.throwto(t, InterruptException()); Pkg.activate(joinpath(Pkg.devdir(), "MLCourse", "RLEnv")); Pkg.instantiate();'
RUN julia -e 'import Pkg; Pkg.activate(joinpath(Pkg.devdir(), "MLCourse")); Pkg.instantiate()'
RUN julia -e 'import Pkg; Pkg.activate(joinpath(Pkg.devdir(), "MLCourse")); using Pluto, MLCourse, MLJ, MLJLinearModels; session = Pluto.ServerSession(); session.options.server.port = 40404; session.options.server.launch_browser = false; session.options.security.require_secret_for_access = false; t = @async Pluto.run(session); sleep(30); @async Base.throwto(t, InterruptException());'
RUN julia -e 'import Pkg; Pkg.activate(joinpath(Pkg.devdir(), "MLCourse", "RLEnv")); Pkg.instantiate();'
RUN julia -e 'import Pkg; Pkg.activate(joinpath(Pkg.devdir(), "MLCourse", "flies")); Pkg.instantiate();'

# The "default command" for this docker thing.
CMD ["julia", "--project=/home/MLCourse", "-e", "import PlutoSliderServer; PlutoSliderServer.run_directory(\".\"; Export_baked_notebookfile = false, SliderServer_port=8000, SliderServer_exclude = [\"notebooks/rnn.jl\", \"extras/transfer_learning.jl\", \"extras/generative_models.jl\"], Export_exclude = [\"notebooks/rnn.jl\", \"extras/transfer_learning.jl\", \"extras/generative_models.jl\"], SliderServer_host=\"0.0.0.0\", Export_slider_server_url=\"https://bio322.epfl.ch/\")"]
CMD ["julia", "--project=/home/MLCourse", "-e", "import PlutoSliderServer; PlutoSliderServer.run_directory(\".\"; Export_baked_statefile = false, Export_baked_notebookfile = false, SliderServer_port=8000, SliderServer_exclude = [\"notebooks/rnn.jl\", \"extras/transfer_learning.jl\", \"extras/generative_models.jl\"], Export_exclude = [\"notebooks/rnn.jl\", \"extras/transfer_learning.jl\", \"extras/generative_models.jl\"], SliderServer_host=\"0.0.0.0\", Export_slider_server_url=\"https://bio322.epfl.ch/\")"]
Loading

0 comments on commit 768054c

Please sign in to comment.