To be able to edit code and run cells, you need to run the notebook yourself. Where would you like to run the notebook?

This notebook takes about 1 minute to run.

In the cloud (experimental)

Binder is a free, open source service that runs scientific notebooks in the cloud! It will take a while, usually 2-7 minutes to get a session.

On your computer

(Recommended if you want to store your changes.)

  1. Download the notebook:
  2. Run Pluto

    (Also see: How to install Julia and Pluto)

  3. Open the notebook file

    Type the saved filename in the open box.

Frontmatter

If you are publishing this notebook on the web, you can set the parameters below to provide HTML metadata. This is useful for search engines and social media.

Author 1
👀 Reading hidden code
md"# [PlutoTeachingTools.jl](https://github.com/JuliaPluto/PlutoTeachingTools.jl) Examples"
241 μs
👀 Reading hidden code
using PlutoUI
177 ms

Language for common prompts:

👀 Reading hidden code
md"""
Language for common prompts: $(@bind lang Select(["en"=>"English", "de"=>"German/Deutsch", "es"=>"Spanish/Español", "ru"=>"Russian", "zh"=>"Chinese"]))
"""
324 ms

See also multi-language support section below

👀 Reading hidden code
Markdown.parse("""See also [multi-language support]($mls_link) section below""")
73.5 μs
👀 Reading hidden code
begin
using PlutoTeachingTools
# Optionally override default language choice (lang defined in widget above)
set_language!(PlutoTeachingTools.get_language(lang))

nb_link_prefix = string(PlutoRunner.notebook_id[]) # for making urls to notebook
pkg_cell_link = "#" * (string(PlutoRunner.currently_running_cell_id[])) # for making urls to this cell
end;
2.3 s
TableOfContents() # from PlutoUI
👀 Reading hidden code
13.4 μs
md"[test](pkg_cell_link)"
👀 Reading hidden code
250 μs

Common Note Boxes

👀 Reading hidden code
180 μs

Almost there!

You're right that the answer is a positive number, but the value isn't quite right.

almost(
md"You're right that the answer is a positive number, but the value isn't quite right."
)
👀 Reading hidden code
48.7 ms

Got it!

Let's move on to the next part.

correct()
👀 Reading hidden code
57.7 ms

Beware!

Don't forget to commit your saved notebook to your repository.

danger(md"Don't forget to commit your saved notebook to your repository.")
👀 Reading hidden code
12.6 ms

Hint

It may be useful to make use of the identity $\sin \theta^2 + \cos \theta^2 =1$.

hint(md"It may be useful to make use of the identity $\sin \theta^2 + \cos \theta^2 =1$.")
👀 Reading hidden code
13.4 ms

Keep working on it!

The answer is not quite right.

keep_working()
👀 Reading hidden code
15.0 ms

Missing Response

Replace missing with your answer.

still_missing()
👀 Reading hidden code
19.3 ms

Here we go!

Replace nothing with your answer.

still_nothing()
👀 Reading hidden code
19.0 ms

Tip

Think back to exercise 1.

tip(md"Think back to exercise 1.")
👀 Reading hidden code
12.7 ms

Question:

Why does the stone have a greater force?

question_box(md"Why does the stone have a greater force?")
👀 Reading hidden code
12.5 ms

Warning:

Be extra careful here.

warning_box(md"Be extra careful here.")
👀 Reading hidden code
12.2 ms

A insightful quote that spans two lines.

blockquote("A insightful quote that spans two lines.")
👀 Reading hidden code
27.1 μs

Logic will get you from A to B. Imagination will take you everywhere.

– A. Einstein

blockquote(
"Logic will get you from A to B. Imagination will take you everywhere.",
md"-- A. Einstein",
)
👀 Reading hidden code
8.8 ms

⚠ TODO ⚠

Remember to add good documentation.

TODO("Remember to add good documentation.")
👀 Reading hidden code
9.5 ms
Loading more cells...