Home > other >  Ipython. The problem of the display shows the Image <Ipython. Core. The display. The Image object
Ipython. The problem of the display shows the Image <Ipython. Core. The display. The Image object

Time:09-17

Recently in learning python, encounter a problem, I want to use Ipython display shows a picture, but show turned out to be & lt; IPython. Core. The display. The Image object> ,
The code is simpler, as follows:
 
The from IPython. Display the import display, Image
Path="1. JPG"
Img=Image (path)
The display (img)


Output the result: & lt; IPython. Core. The display. The Image object> Don't display images,
Want to display images, how should do?
Win7x64 + PyCharm + python3.5 + Ipython5.3
I want to use Ipython. Display display picture
I want to use Ipython. Display display picture
I want to use Ipython. Display display picture

CodePudding user response:

Don't display (path), direct Image (path) line

CodePudding user response:

reference 1st floor u010099080 response:
don't display (path), direct Image (path) line


I don't know why, for me, the effect is the same
The same display & lt; IPython. Core. The display. The Image object>

CodePudding user response:

refer to the second floor huqiao1206 response:
Quote: refer to 1st floor u010099080 response:

Don't display (path), direct Image (path) line


I don't know why, for me, the effect is the same
The same display & lt; IPython. Core. The display. The Image object>


Forgot to ask, are you in jupyter running in the notebook?

CodePudding user response:

reference u010099080 reply: 3/f
Quote: refer to the second floor huqiao1206 response:

Quote: refer to 1st floor u010099080 response:

Don't display (path), direct Image (path) line


I don't know why, for me, the effect is the same
The same display & lt; IPython. Core. The display. The Image object>


Forgot to ask, are you in jupyter running in the notebook?

No, it's in pycharm, just get the jupyter, it shows no problem, but not pycharm, how can the pycharm into?

CodePudding user response:

reference 4 floor huqiao1206 response:
Quote: reference u010099080 reply: 3/f

Quote: refer to the second floor huqiao1206 response:

Quote: refer to 1st floor u010099080 response:

Don't display (path), direct Image (path) line


I don't know why, for me, the effect is the same
The same display & lt; IPython. Core. The display. The Image object>


Forgot to ask, are you in jupyter running in the notebook?

No, it's in pycharm, just get the jupyter, it shows no problem, but not pycharm, how can the pycharm into?


You can write so
 import matplotlib. Pyplot as PLT 

Img=PLT. Imread (r 'C: \ Users \ secsi \ Pictures \ Saved Pictures \ 384 px - Venn0111 SVG. PNG')
PLT. Imshow (img)
PLT. The show ()

CodePudding user response:

reference 5 floor u010099080 reply:
Quote: refer to 4th floor huqiao1206 response:

Quote: refer to the third floor u010099080 response:

Quote: refer to the second floor huqiao1206 response:

Quote: refer to 1st floor u010099080 response:

Don't display (path), direct Image (path) line


I don't know why, for me, the effect is the same
The same display & lt; IPython. Core. The display. The Image object>


Forgot to ask, are you in jupyter running in the notebook?

No, it's in pycharm, just get the jupyter, it shows no problem, but not pycharm, how can the pycharm into?


You can write so
 import matplotlib. Pyplot as PLT 

Img=PLT. Imread (r 'C: \ Users \ secsi \ Pictures \ Saved Pictures \ 384 px - Venn0111 SVG. PNG')
PLT. Imshow (img)
PLT. The show ()



Well well, thank you, write in this I know, but I wanted to know with Ipython. Implementation of the display, thank you

CodePudding user response:

Problem solved?

CodePudding user response:

Problem solved? I also encountered this problem

CodePudding user response:

Don't know can find out why?

CodePudding user response:

https://stackoverflow.com/questions/28237210/image-does-not-display-in-ipython
Solution Stack Overflow, learning Tesorflow official document, I also met the same problem,

CodePudding user response:

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related