Jupyter image browsing

If you are doing image or NLP, you need to browse a large number of files through Jupyter, you can refer to the following method to browse.

1. Jupyte Lab
Jupyter Lab has its own file browser image.png

insert image description here

2. Jupyte Notebook
Jupyter Notebook can be browsed through ipywidgets and IPython.display options

pip install ipywidgets
from pathlib import Path
from ipywidgets import interact
from IPython.display import Image, display
@interact
def show_image(file = Path('C:\\XX\\Jupyter\\').glob('*.png')):
    display(Image(file))

insert image description here

Guess you like

Origin blog.csdn.net/qq_17716819/article/details/129514304