You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Running OpenImageIO in Jupyter Notebooks and displaying ImageBuf**
4269
+
4270
+
4271
+
Like any other Python package, OpenImageIO can be used in`Jupyter notebooks <https://jupyter.org/install>`_.
4272
+
The ImageBuf objects support getting displayed inline within notebooks.
4273
+
4274
+
.. image:: figures/imagebuf-notebook-demo.png
4275
+
4276
+
.. warning::
4277
+
4278
+
Currently, ImageBuf objects get displayed as**uint8 PNGs** inside of notebooks.
4279
+
ImageBuf objects that store images with higher bit depths get dithered to account for this.
4280
+
Keep in mind that directly saving the inline image to disk will not preserve the original image within the ImageBuf.
4281
+
4282
+
4283
+
Running a Local Jupyter Notebook:
4284
+
4285
+
If you want to run a local Jupyter notebook with OpenImageIO, you can do so from within the Python environment in which you have installed OpenImageIO.
4286
+
4287
+
.. code-block:: bash
4288
+
4289
+
pip install jupyterlab
4290
+
jupyter lab
4291
+
4292
+
Alternatively, if you prefer using `uv <https://github.com/astral-sh/uv>`_, you can run the following command:
0 commit comments