Skip to content

Commit 0eb3e88

Browse files
committed
env file
1 parent c8bdfe0 commit 0eb3e88

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ RUN julia -e 'import Pkg; Pkg.activate(joinpath(Pkg.devdir(), "MLCourse", "RLEnv
3030
RUN julia -e 'import Pkg; Pkg.activate(joinpath(Pkg.devdir(), "MLCourse", "flies")); Pkg.instantiate();'
3131

3232
# The "default command" for this docker thing.
33-
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/\")"]
33+
CMD ["julia", "--project=/home/MLCourse", "-e", "import PlutoSliderServer; PlutoSliderServer.run_directory(\".\"; 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/\")"]

notebooks/introduction.jl

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ In the julia REPL press `]` to enter the package manager.
162162
Create a new environment with
163163
164164
```julia
165-
(@v1.9) pkg> activate MLCourse # creates a new environment
165+
(@v1.10) pkg> activate MLCourse # creates a new environment
166166
(MLCourse) pkg> add DataFrames, Distributions, Plots, CSV, OpenML
167167
```
168168
Leave package mode with the `backspace` key and load the packages you want with
@@ -172,15 +172,23 @@ julia> using DataFrames, Distributions, Plots
172172
173173
Whenever you want to go back to working with this environment, navigate to the folder that contains `MLCourseSolutions`, open julia, type `]` and run again
174174
```julia
175-
(@v1.9) pkg> activate MLCourseSolutions
175+
(@v1.10) pkg> activate MLCourseSolutions
176176
```
177177
178178
If you want to know more about julia's package manager, have a look [here](https://pkgdocs.julialang.org/v1/getting-started/).
179179
"""
180180
,
181181
md"""
182182
#### MLCourse environment
183-
Create an MLCourse python environment using:
183+
184+
$(DownloadButton("BIO322.yml", "BIO322.yml"))Download the environment file and run:
185+
```python
186+
conda create -n MLCourse -f BIO322.yml
187+
conda activate MLCourse
188+
```
189+
190+
191+
In case you would like to build the environment yourself, run:
184192
185193
```python
186194
conda create -n MLCourse python=3.10.8

0 commit comments

Comments
 (0)