You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, the formatter will run automatically when a pull-request is made
70
-
71
-
72
68
**(Optional) REPL Integration**
73
69
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.
74
70
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,
84
80
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>`.
85
81
86
82
Code can be executed line by line, or you can select a chunk of code and execute it.
83
+
87
84
## Example Operations
88
85
### Building the lectures
89
86
To do a full build of the lectures:
@@ -100,7 +97,7 @@ jb build lectures
100
97
101
98
This will take a while. But it will populate your cache, so future iteration is faster.
102
99
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:
104
101
105
102
```
106
103
ImportError: DLL load failed while importing win32api: The specified procedure could not be found.
@@ -132,5 +129,4 @@ jb clean lectures --all
132
129
133
130
After execution, you can find the generated `.ipynb` and `.jl` files in `_build/jupyter_execute` for each lecture.
134
131
- 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