Registry / data / napari-console

napari-console

JSON →
library0.1.4pypypiunverified

napari-console is a napari plugin that integrates an interactive Python console (powered by `qtconsole`) directly into the napari viewer. It allows users to programmatically interact with the currently active napari viewer and its layers, widgets, and data. The current version is 0.1.4, with a release cadence tied to napari's development and specific feature/bug fix needs for the console functionality.

pip install napari-console
INSTALL
IMPORT
SIG · NAPARI-CONSOLE
N
napari-console
datapythonv0.1.4
Install
21.4s avg
Import
Disk
496MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
2/4 runs
✓ 21.83s
py 3.11
2/4 runs
✓ 21.05s
py 3.12
2/4 runs
✓ 19.33s
py 3.13
2/4 runs
✓ 19.2s
py 3.9
2/4 runs
✓ 25.83s
496MB installed
● package 496MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

napari_console
import napari_console
import napari_console

This quickstart demonstrates how to launch napari and then access the napari-console plugin through the GUI. The plugin integrates directly into the napari environment, providing an interactive Python shell with the `viewer` object pre-injected into its namespace.

import napari # Ensure both napari and napari-console are installed: # pip install napari napari-console # 1. Start the napari viewer viewer = napari.Viewer() # 2. To open the console, in the running napari application: # Go to 'Plugins' in the top menu bar. # Select 'napari-console: Console'. # A new console widget will appear, automatically providing access to the 'viewer' object. # Example commands to type directly into the napari console: # print(viewer) # viewer.add_points([[0, 0], [10, 10], [5, 5]], text='Hello') # Keep napari running (essential for GUI interaction) napari.run()
Debug
Known issues
gotchanapari-console requires specific versions of `napari` and `qtconsole`. Ensure your environment satisfies `napari>=0.4.17` and `qtconsole>=5.3.0` to avoid display issues or errors.
fix
Upgrade napari-console and ensure all dependencies are up-to-date: `pip install --upgrade napari-console napari qtconsole`.
affects: <0.1.1 (napari-console) with older napari
gotchaThe console is a GUI element and must be explicitly opened via the 'Plugins' menu in the napari application. It does not automatically appear on napari startup.
fix
After launching napari, navigate to `Plugins > napari-console: Console` in the napari menu bar to open the console window.
affects: All versions
gotchaThe console operates within the context of the running napari viewer. While `viewer` is automatically available, other Python objects or variables defined in scripts *outside* the napari process will not be accessible unless explicitly imported or redefined within the console.
fix
To access external variables or modules, import them directly within the console session (e.g., `import numpy as np`) or pass objects to the napari viewer's namespace if you're embedding (advanced use case).
affects: All versions
gotchaIssues with `qtconsole` (e.g., version conflicts with other packages, missing `ipython` kernels, or display issues on specific Qt backends) can directly impact napari-console's functionality or prevent it from launching.
fix
Verify your `qtconsole` installation and its dependencies are working correctly. Try running `jupyter qtconsole` directly from your terminal to diagnose `qtconsole`-specific issues. Ensure `pip install --upgrade qtconsole` is run.
affects: All versions
Upgrade
Version history
0.1.4latest on PyPI · released Oct 15, 2025
Audit
Dependencies
naparirequiredCore dependency for the plugin to function within the napari ecosystem. Requires napari>=0.4.17.
qtconsolerequiredPowers the interactive console functionality. Requires qtconsole>=5.3.0.
Agent activity
13 hits · last 30 days
node
12
Resources