0

How do I center align an image file that I added to Jupyter Notebook? Right now it's left align. Note: I do not want to use markdown. I want to import the image using code.

Here's my code:

from IPython.display import Image 
Image(filename='C:\\Users\\LinAlg_Python_Prep\\Capture0.PNG') 

enter image description here

PineNuts0
  • 4,740
  • 21
  • 67
  • 112
  • Nothing stops you from importing the image in code and then using markdown to display it. https://stackoverflow.com/questions/46439874/display-image-jupyter-notebook-aligned-centre – couka Jan 04 '21 at 00:01
  • I tried that already ... it doesn't render the image at all. – PineNuts0 Jan 04 '21 at 00:23
  • We cannot help debug "that" without any actual code sample – couka Jan 04 '21 at 01:49

0 Answers0