From ef03b3cab21d73d39c5460024f7fe2a9a7699ac7 Mon Sep 17 00:00:00 2001 From: Lorenzo Gaifas Date: Tue, 23 Sep 2025 16:46:55 +0200 Subject: [PATCH] add some info about cli and python script --- docs/tutorials/fundamentals/features.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/fundamentals/features.md b/docs/tutorials/fundamentals/features.md index 164e1651c..5521ad061 100644 --- a/docs/tutorials/fundamentals/features.md +++ b/docs/tutorials/fundamentals/features.md @@ -68,6 +68,12 @@ To see it in action, see the {ref}`sphx_glr_gallery_features_table_widget.py` ga ## Running python scripts with napari -Images and other data files are not the only thing that napari can read! You can also run any python script in napari by [drag'n'dropping](https://github.com/napari/napari/blob/main/examples/drag_and_drop_python_code.py) the script onto the viewer. When a script is opened with napari the first viewer instance created by the script will be replaced with the current existing viewer. +Images and other data files are not the only thing that napari can read! You can also run any python script in napari by [drag'n'dropping](https://github.com/napari/napari/blob/main/examples/drag_and_drop_python_code.py) the script onto the viewer, or by passing the script as an argument to napari. When a script is opened with napari, the first viewer instance created by the script will be replaced with the current existing viewer, if any. + +It even works with remote files! + +```bash +napari https://github.com/napari/napari/blob/main/examples/add_3D_image.py +``` This feature is especially useful for quickly testing or distributing code snippets without needing to leave the viewer or touch the console.