{"library":"napari-console","title":"napari-console Plugin","description":"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.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install napari-console","pip install napari napari-console"],"cli":null},"imports":["import napari_console"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import napari\n\n# Ensure both napari and napari-console are installed:\n# pip install napari napari-console\n\n# 1. Start the napari viewer\nviewer = napari.Viewer()\n\n# 2. To open the console, in the running napari application:\n#    Go to 'Plugins' in the top menu bar.\n#    Select 'napari-console: Console'.\n# A new console widget will appear, automatically providing access to the 'viewer' object.\n\n# Example commands to type directly into the napari console:\n# print(viewer)\n# viewer.add_points([[0, 0], [10, 10], [5, 5]], text='Hello')\n\n# Keep napari running (essential for GUI interaction)\nnapari.run()","lang":"python","description":"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.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}