I am following the lectures of the course Computational Thinking, MIT 18.S191. I would like to run the function show_image()
used extensively in class 8. The course provides a Pluto notebook here.
I create a new Pluto notebook to follow the lecture. I run the first block with the setup provided by the notebook in the link above. The setupt adds several packages. However, when I try to execute show_image()
, I receive the message UndefVarError: show_image not defined
.
On the other hand, when I simply run the entire notebook provided by the course, the function show_image()
runs. In principle, running the setup block as I do above would allow the execution of this function. However, when I include myself this block in a new notebook, it does not work. How can I solve this problem?