In [1]:
a = 1
b = 2
print(a, b)
1 2
In [2]:
c = a+b
print(c)
3
In [3]:
import matplotlib.pyplot as plt
%config InlineBackend.figure_format = 'svg'

fig, ax = plt.subplots()

fruits = ['apple', 'blueberry', 'cherry', 'orange']
counts = [40, 100, 30, 55]
bar_labels = ['red', 'blue', '_red', 'orange']
bar_colors = ['tab:red', 'tab:blue', 'tab:red', 'tab:orange']

ax.bar(fruits, counts, label=bar_labels, color=bar_colors)

ax.set_ylabel('fruit supply')
ax.set_title('Fruit supply by kind and color')
ax.legend(title='Fruit color')

plt.show()
No description has been provided for this image

Caption 1

Caption 1.1

Caption 1.1.1

Caption 1.1.1.1

This is a markdown block.

In [4]:
from IPython.display import Image

Image(url="https://upload.wikimedia.org/wikipedia/commons/9/94/Animation_Sieve_of_Eratosth.gif?20061230143851")
Out[4]:
No description has been provided for this image

Above GIF is abtained from Wikipedia entry "Sieve of Eratosthenes" to show Sieve of Eratosthenes for finding all prime numbers up to any given limit.