Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion phases/00-setup-and-tooling/05-jupyter-notebooks/docs/en.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,18 @@ plt.show()

The plot appears right below the cell. This is why notebooks dominate AI work. You see the data, the plot, and the code together.

For images:
For images, make sure the file exists before displaying it. This example creates a small placeholder image first:

```python
import matplotlib.pyplot as plt
from IPython.display import Image, display

plt.figure(figsize=(6, 3))
plt.text(0.5, 0.5, "Architecture Diagram", ha="center", va="center", fontsize=18)
plt.axis("off")
plt.savefig("architecture.png", bbox_inches="tight", dpi=150)
plt.close()

display(Image(filename="architecture.png"))
```

Expand Down