Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi @ajit

Maybe this example could help you (assuming you want to display an image in a cell ?, but not sure it is what you want)

import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np
from matplotlib.pyplot import figure
#imgPath="C:\\Users\\User\\Documents\\IPYNBpc\\LinearAlgebraMIT\\" # from Firefox in W11
imgPath='/mnt/c/Documents and Settings/user/Mes documents/IPYNBpc/LinearAlgebraMIT/' #  Firefox  UBUNTU
figS=120
figure(num=None, figsize=(figS, 3*figS), dpi=100, facecolor='w', edgecolor='k')
img = mpimg.imread(imgPath+"GthChap1Exercice11.png")
imgplot = plt.imshow(img)