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
Copy file name to clipboardExpand all lines: lectures/getting_started_julia/getting_started.md
+28-2Lines changed: 28 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,9 +52,13 @@ If you have already installed Jupyter, Julia, and Git and have experience with t
52
52
- Open a Jupyter notebook within the downloaded notebooks
53
53
- Install the necessary packages in a Julia REPL with `using Pkg; Pkg.instantiate()`
54
54
55
+
55
56
At that point, you could directly move on to the {doc}`julia by example <../getting_started_julia/julia_by_example>` lecture.
56
57
57
58
However, as we strongly recommend becoming familiar with VS Code as a transition towards using more advanced tools and to support better software engineering workflows, so consider walking through the rest of these instructions.
59
+
60
+
Alternatively, you can simply install Julia, VS Code, Git, and the Julia extension for VS Code and use the notebooks {ref}`directly without an installation of Python <running_vscode_kernel>`.
61
+
58
62
```
59
63
60
64
For those with little to no programming experience (e.g. you have never used a loop or "if" statement) see the list of [introductory resources](intro_resources).
@@ -80,7 +84,9 @@ If you have not previously installed Conda or Jupyter, then
80
84
2. If given the option for your operating system, let Conda add Python to your PATH environment variables.
81
85
82
86
```{note}
83
-
While Conda is the easiest way to install jupyter, it is not strictly required. With any python you can install with `pip install jupyter`. Alternatively you can let `IJulia` install its own version of Conda by following [these instructions](https://julialang.github.io/IJulia.jl/dev/manual/running/), or use the direct support for [Jupyter notebooks in VS Code](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) - which does no Python installation at all.
87
+
While Conda is the easiest way to install jupyter, it is not strictly required. With any python you can install with `pip install jupyter`. Alternatively you can let `IJulia` install its own version of Conda by following [these instructions](https://julialang.github.io/IJulia.jl/dev/manual/running/).
88
+
89
+
Finally, there is direct support for [Jupyter notebooks in VS Code](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) with **no Python installation**. See {ref}`VS Code Julia Kernel <running_vscode_kernel>`.
84
90
```
85
91
86
92
(intro_repl)=
@@ -248,7 +254,7 @@ Recall that you can start this directly from the [command palette](command_palet
248
254
This process will take several minutes to download and compile all of the files used by the lectures.
249
255
250
256
```{attention}
251
-
If the cursor is instead `(@v1.10) pkg>` then you may not have started the integrated terminal in the correct location, or you used an external REPL. Assuming that you are in the correct location, if you type `activate .` in the package mode, the cursor should change to `(quantecon-notebooks-julia) pkg>` as it activates this project file.
257
+
If the cursor is instead `(@v1.11) pkg>` then you may not have started the integrated terminal in the correct location, or you used an external REPL. Assuming that you are in the correct location, if you type `activate .` in the package mode, the cursor should change to `(quantecon-notebooks-julia) pkg>` as it activates this project file.
252
258
253
259
One benefit of using the integrated REPL is that it will set important options for launching Julia (e.g. the number of threads) and activate the local project files (i.e. the `Project.toml` file in the notebooks directory) automatically. If you use an external REPL, you will need to set these manually. Here you would want to run the REPL with `julia --project --threads auto` to tell Julia to set the number of threads equal to your local machine's number of cores, and to activate the existing project. See [here](repl_main) for more details.
254
260
```
@@ -520,3 +526,23 @@ which provides a static HTML representations of notebooks.
520
526
521
527
QuantEcon also hosts the [QuantEcon Notes](http://notes.quantecon.org/) website, where you can upload and share your notebooks with other economists and the QuantEcon community.
522
528
529
+
(running_vscode_kernel)=
530
+
## Running the VS Code Julia Kernel
531
+
The Jupyter Extension for VS Code supports Julia directly without the need for a Python installation.
532
+
533
+
With cloned notebooks, open a `.ipynb` file directly in VS Code. Depending on your setup, you may see a request to choose the kernel for executing the notebook.
534
+
535
+
To do so, click on the `Choose Kernel` or `Select Another Kernel...` which may display an option such as
Choose the `Julia` kernel, rather than the `Jupyter Kernel...` to bypass the Python Jupyter setup. If successful, you will see the kernel name as `Julia 1.11 channel` or something similar.
542
+
543
+
With the kernel selected, you will be able to run cells in the VS Code UI with similar features to Jupyter Lab. For example, below shows the results of play icon next to a code cell, which will `Execute Cell` and display the results inline.
Copy file name to clipboardExpand all lines: lectures/software_engineering/tools_editors.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,8 @@ While Jupyter notebooks are a great way to get started with the language, eventu
28
28
29
29
While you can use source code control, run terminals and the REPL ("Read-Evaluate-Print Loop") without VS Code, we will concentrate on using it as a full IDE for all of these features.
30
30
31
+
See [Modern Julia Workflows](https://modernjuliaworkflows.org/) for alternative approaches.
0 commit comments