Skip to content

Commit 421bd7b

Browse files
committed
Closes #99
1 parent d9c6daf commit 421bd7b

File tree

1 file changed

+13
-49
lines changed

1 file changed

+13
-49
lines changed

README.md

Lines changed: 13 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,25 @@
11
# lecture-julia.myst
22

3-
Source for julia.quantecon.org
3+
Source for julia.quantecon.org and notebooks in https://github.com/QuantEcon/lecture-julia.notebooks
44

5-
## Local Development
6-
7-
### Setup
8-
9-
1. Download and install [Julia 1.6](https://julialang.org/downloads).
5+
To contribute, you can use GitHub's online editor for small changes, and do a full local installation for large ones.
106

11-
2. Install [`conda`](https://www.anaconda.com/products/individual)
12-
- See [Conda Installation](https://datascience.quantecon.org/introduction/local_install.html#installation) for examples
13-
- Add conda to path
7+
## Online Editor
148

15-
3. Install [vscode](https://code.visualstudio.com/) and accept defaults if possible:
16-
- Some highly recommended packages. After installation of vscode, you should be able to click `Install` link on the webpage of any extensions
17-
- [MyST-Markdown](https://github.com/executablebooks/myst-vs-code)
18-
- [Julia](https://marketplace.visualstudio.com/items?itemName=julialang.language-julia)
19-
- Other optional, but recommended extensions
20-
- [Live Preview](https://marketplace.visualstudio.com/items?itemName=ms-vscode.live-server)
21-
- [Github Support](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github)
22-
- [Jupyter](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter)
23-
- [Editing Markdown](https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one)
24-
- [Extra Git Tools](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens)
25-
- [Spell Checking](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker)
26-
- [YAML support](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml)
9+
On this website hit `.` to enter into the web editor. From this, you can submit suggested patches and fix typos. This will help you create a [pull request](https://quantecon.github.io/lecture-julia.myst/software_engineering/version_control.html#collaboration-via-pull-request) for maintainers here to examine.
2710

28-
- Go to settings with `<Ctrl-Shift-P>` and search for the following settings to change:
29-
- `files.eol` to `\n`
30-
- `enablePreviewFromQuickOpen` to turn it off
31-
- `Tab Size` to `4`
11+
## Local Development
3212

33-
4. If on Windows, install [git](https://git-scm.com/downloads) and run the following in a terminal
13+
It is straightforward to install the jupyterbook and julia software necessary for more significant changes.
3414

35-
```bash
36-
git config --global core.eol lf
37-
git config --global core.autocrlf false
38-
```
15+
### Setup
3916

40-
5. Clone this repository (in vscode, you can use `<Ctrl-Shift-P>` then `Clone` then `Clone from GitHub` then choose the repo as `https://github.com/QuantEcon/lecture-julia.myst`). Or with github desktop, choose the `<> Code` dropdown on this website
17+
1. [Install Julia, Conda, and VS Code](https://quantecon.github.io/lecture-julia.myst/getting_started_julia/getting_started.html) following the documentation for using these notes
18+
2. Modify [VS Code settings](https://quantecon.github.io/lecture-julia.myst/software_engineering/tools_editors.html#optional-extensions-and-settings) and consider [additional extensions](https://quantecon.github.io/lecture-julia.myst/software_engineering/tools_editors.html#optional-extensions). Some others to consider are the [MyST-Markdown](https://github.com/executablebooks/myst-vs-code) and [Spell Checking](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) extensions
19+
3. Ensure that [Git](https://quantecon.github.io/lecture-julia.myst/software_engineering/version_control.html#setup) is setup correctly. In particular this ensures that Windows users use the linux end-of-line characters.
20+
4. Clone this repository (in VS Code, you can use `<Ctrl+Shift+P>` then `Clone` then `Clone from GitHub` then choose the repo as `https://github.com/QuantEcon/lecture-julia.myst`).
4121

42-
6. Open this repository in vscode, either from Github Desktop with `<Ctrl-Shift-A>` or with `code .` in the right folder in a terminal
43-
- After opening this repo, any terminals start at its root.
22+
6. Open this repository in VS Code. If you cloned in a separate terminal, navigate to the directory and type `code .`
4423

4524
7. Start a vscode terminal with ``<Ctrl+`>`` or through any other method. Create a conda environment.
4625

@@ -57,22 +36,7 @@ Source for julia.quantecon.org
5736
- Then choose the interpeter with `lecture-julia.myst` which should now be automatically activated in the terminal.
5837
- If the interpreter does not show up in the drop-down, close and reopen vscode, then try again. Alternatively, you can run this step at the end of the setup process.
5938
- Whenever reopening vscode, re-run `conda activate lecture-julia.myst` to ensure the environment remains active.
60-
61-
9. Install general julia packages if not already installed.
62-
63-
```bash
64-
julia -e 'using Pkg; Pkg.add("IJulia");'
65-
```
66-
67-
On Windows, you should run the following instead to avoid a quoting issue:
68-
69-
```bash
70-
julia -e "using Pkg; Pkg.add(\"IJulia\");"
71-
```
72-
73-
If the terminal responds with `'Julia' is not recognized`, close and reopen vscode, then try again. Make sure to re-activate the environment.
74-
75-
10. Install Julia packages required for lecture notes.
39+
9. Install Julia packages required for lecture notes.
7640
7741
```bash
7842
julia --project=lectures --threads auto -e 'using Pkg; Pkg.instantiate();'

0 commit comments

Comments
 (0)