Example 1: An advanced example notebook

[1]:
from IPython import display
import os
[2]:
print("This is an example notebook")
This is an example notebook
[3]:
cur_dir = os.getcwd()
parent_dir = os.path.dirname(os.path.dirname(cur_dir))

The last cell has this info in the cell metadata

{ “nbsphinx-thumbnail”: { “tooltip”: “This tooltip message was defined in cell metadata” } }

[4]:
display.Image(f'{parent_dir}/_static/logo.png')
[4]:
../../_images/examples_advanced_Advanced_Example1_6_0.png