Skip to content

Commit bf0ae39

Browse files
authored
Julia 1.10 support (#283)
* Julia 1.10 updates in progress * Fixed regressions with Julia 1.10
1 parent 4b7cf91 commit bf0ae39

File tree

79 files changed

+877
-912
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+877
-912
lines changed

.github/workflows/cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Set up Julia
3838
uses: julia-actions/setup-julia@v1
3939
with:
40-
version: 1.9
40+
version: 1.10.0
4141
- name: Install IJulia and Setup Project
4242
shell: bash
4343
run: |

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Set up Julia
3333
uses: julia-actions/setup-julia@v1
3434
with:
35-
version: 1.9
35+
version: 1.10.0
3636
- name: Install IJulia and Setup Project
3737
shell: bash
3838
run: |

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Julia
1818
uses: julia-actions/setup-julia@v1
1919
with:
20-
version: 1.9
20+
version: 1.10.0
2121

2222
- name: Install JuliaFormatter.jl
2323
run: julia -e 'import Pkg; Pkg.add("JuliaFormatter")'

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Set up Julia
3636
uses: julia-actions/setup-julia@v1
3737
with:
38-
version: 1.9
38+
version: 1.10.0
3939
- name: Install IJulia and Setup Project
4040
shell: bash
4141
run: |

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
_build
2-
us_cities.txt
2+
us_cities.txt
3+
.DS_Store
4+
.vscode

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ It is straightforward to install the Jupyter Book and Julia software necessary f
2626
7. Start a VS Code terminal with ``<Ctrl+`>`` or through any other method. Create a conda environment.
2727

2828
```bash
29-
conda create -n lecture-julia.myst python=3.9
29+
conda create -n lecture-julia.myst python=3.11
3030
conda activate lecture-julia.myst
3131
pip install -r requirements.txt
3232
```
@@ -62,13 +62,9 @@ As a helper, you can call a shell script to do it for an entire folder
6262
bash format_all_directory.sh lectures/dynamic_programming
6363
```
6464
or to also do the unicode substitutions
65-
```bash
6665
bash format_all_directory.sh lectures/dynamic_programming true
6766
```
6867
69-
Alternatively, the formatter will run automatically when a pull-request is made
70-
71-
7268
**(Optional) REPL Integration**
7369
With [MyST-Markdown](https://github.com/executablebooks/myst-vs-code) and [Julia](https://marketplace.visualstudio.com/items?itemName=julialang.language-julia) installed, you can ensure that pressing `<Ctrl-Enter>` on lines of code are sent to a Julia REPL.
7470
1. Open Key Bindings with `<Ctrl-K Ctrl-S>`.
@@ -84,6 +80,7 @@ If you installed the REPL Integration above, then in a `.md` file,
8480
3. Then, assuming that you set up the keybindings above, you can send a line of code in the markdown to the REPL with `<Ctrl-Enter>`.
8581
8682
Code can be executed line by line, or you can select a chunk of code and execute it.
83+
8784
## Example Operations
8885
### Building the lectures
8986
To do a full build of the lectures:
@@ -100,7 +97,7 @@ jb build lectures
10097
10198
This will take a while. But it will populate your cache, so future iteration is faster.
10299
103-
On Windows, if you get the following error:
100+
It is suggested to use WSL on Windows On Windows, if you get the following error:
104101
105102
```
106103
ImportError: DLL load failed while importing win32api: The specified procedure could not be found.
@@ -132,5 +129,4 @@ jb clean lectures --all
132129
133130
After execution, you can find the generated `.ipynb` and `.jl` files in `_build/jupyter_execute` for each lecture.
134131
- To see errors, you can open these in JupyterLab, the Jupyter support within VS Code, etc.
135-
- If using the Julia REPL in VS Code, make sure to do `] activate lectures` prior to testing to ensure the packages are activated. This is not necessary when opening in Jupyter.
136-
- Finally, the code is written using interactive scoping, so `include(_build/jupyter_execute/dynamic_programming/mccall_model.jl)` etc. may not work. However, `shift-enter` within VS Code to the REPL will work, and you can execute these with [SoftGlobalScope.jl](https://github.com/stevengj/SoftGlobalScope.jl) if strictly required.
132+
- If using the Julia REPL in VS Code, make sure to do `] activate lectures` prior to testing to ensure the packages are activated. This is not necessary when opening in Jupyter.

0 commit comments

Comments
 (0)