This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
gibson:teaching:fall-2016:math753:notebook-workflow [2016/09/01 10:02] gibson [Executing Julia code in a notebook] |
gibson:teaching:fall-2016:math753:notebook-workflow [2016/09/01 10:04] gibson [Executing a line of code with shift-enter] |
||
---|---|---|---|
Line 6: | Line 6: | ||
- Graphical output | - Graphical output | ||
- | ====== Executing Julia code in a notebook ===== | + | ===== Executing Julia code in a notebook ===== |
Our first concern is working with the live Julia code cells. I'll illustrate on the "Numbers, variables, and basic functions" notebook from the Hands-on Julia tutorial. You should start that notebook and follow along (see [[:gibson:teaching:fall-2016:math753:julia-notebooks]]). | Our first concern is working with the live Julia code cells. I'll illustrate on the "Numbers, variables, and basic functions" notebook from the Hands-on Julia tutorial. You should start that notebook and follow along (see [[:gibson:teaching:fall-2016:math753:julia-notebooks]]). | ||
Line 12: | Line 12: | ||
----- | ----- | ||
- | ===== Executing a line of code with shift-enter ===== | + | ==== Executing a line of code with shift-enter ==== |
1. Click on the line ''In [ ]: typeof(10)''. The line will be highlighted with a green box, and you should see a blinking cursor after ''typeof(10)''. | 1. Click on the line ''In [ ]: typeof(10)''. The line will be highlighted with a green box, and you should see a blinking cursor after ''typeof(10)''. | ||
Line 24: | Line 24: | ||
{{ :gibson:teaching:fall-2016:math753:notebookworkflow2.jpg |}} | {{ :gibson:teaching:fall-2016:math753:notebookworkflow2.jpg |}} | ||
+ | ----- | ||
===== Adding a new Julia-code cell with ctrl-m-b ===== | ===== Adding a new Julia-code cell with ctrl-m-b ===== | ||