diff --git a/docs/source/imgs/nifti-jupyter-visualization.mp4 b/docs/source/imgs/nifti-jupyter-visualization.mp4 new file mode 100644 index 00000000000..c8a60982d0a Binary files /dev/null and b/docs/source/imgs/nifti-jupyter-visualization.mp4 differ diff --git a/docs/source/nifti_dataset.mdx b/docs/source/nifti_dataset.mdx index 2770460fbaf..b82c0b9e2b1 100644 --- a/docs/source/nifti_dataset.mdx +++ b/docs/source/nifti_dataset.mdx @@ -127,4 +127,22 @@ for epi_img in nifti_ds: ``` For further reading we refer to the [nibabel documentation](https://nipy.org/nibabel/index.html) and especially [this nibabel tutorial](https://nipy.org/nibabel/coordinate_systems.html) + +## Visualizing images in Jupyter +We added support for visualizing images directly in the Jupyter notebook-like environments. When you load an image dataset, the images will be displayed automatically when you return them. + +```py +from datasets import load_dataset + +ds = load_dataset("", + split="") + +ds[0]["nifti"] # The image will be displayed directly in the notebook +``` + + + ---