{"name":"napari-script-editor","display_name":"napari-script-editor","visibility":"public","icon":"","categories":[],"schema_version":"0.2.0","on_activate":null,"on_deactivate":null,"contributions":{"commands":[{"id":"napari-script-editor.ScriptEditor","title":"ScriptEditor","python_name":"napari_script_editor._dock_widget:ScriptEditor","short_title":null,"category":null,"icon":null,"enablement":null}],"readers":null,"writers":null,"widgets":[{"command":"napari-script-editor.ScriptEditor","display_name":"ScriptEditor","autogenerate":false}],"sample_data":null,"themes":null,"menus":{},"submenus":null,"keybindings":null,"configuration":[]},"package_metadata":{"metadata_version":"2.1","name":"napari-script-editor","version":"0.2.10","dynamic":null,"platform":null,"supported_platform":null,"summary":"A python script editor for napari","description":"# napari-script-editor\n\n[![License](https://img.shields.io/pypi/l/napari-script-editor.svg?color=green)](https://github.com/haesleinhuepf/napari-script-editor/raw/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/napari-script-editor.svg?color=green)](https://pypi.org/project/napari-script-editor)\n[![Python Version](https://img.shields.io/pypi/pyversions/napari-script-editor.svg?color=green)](https://python.org)\n[![tests](https://github.com/haesleinhuepf/napari-script-editor/workflows/tests/badge.svg)](https://github.com/haesleinhuepf/napari-script-editor/actions)\n[![codecov](https://codecov.io/gh/haesleinhuepf/napari-script-editor/branch/main/graph/badge.svg)](https://codecov.io/gh/haesleinhuepf/napari-script-editor)\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-script-editor)](https://napari-hub.org/plugins/napari-script-editor)\n\nA python script editor for napari based on [haesleinhuepf's fork of PyQode](https://github.com/haesleinhuepf/pyqode.core).\n\n----------------------------------\n\nThis [napari] plugin was generated with [Cookiecutter] using with [@napari]'s [cookiecutter-napari-plugin] template.\n\n![](https://github.com/haesleinhuepf/napari-script-editor/raw/main/docs/screenshot2.png)\n\n## Usage\n\nStart the script editor from the menu `Tools > Scripts > Script Editor`. Use the auto-completion while typing, \ncheck out the [napari tutorials](https://napari.org/tutorials/) and the\n[example scripts](https://github.com/haesleinhuepf/napari-script-editor/tree/main/example_scripts). \nUse the `Run` button to execute a script.\n\n![](https://github.com/haesleinhuepf/napari-script-editor/raw/main/docs/type_and_run_screencast.gif)\n\nIf you save the script to the folder \".napari-scripts\" in your home directory, you will find the script in the \n`Tools > Scripts` menu in napari. You can then also start it from there.\n\n![](https://github.com/haesleinhuepf/napari-script-editor/raw/main/docs/run_from_menu_screencast.gif)\n\nNote: If you have scripts, that might be useful to others, please send them as \n[pull-request](https://github.com/haesleinhuepf/napari-script-editor/pulls) to the examples in \nrepository or share them in any other way that suits you.\n\n### chatGPT support\n\nIn case [openAI API](https://openai.com/blog/openai-api) is installed, you find another button in the script editor to `Ask chatGPT`. \nEnter a prompt in the script editor and click the button. The script editor will send the prompt to\nchatGPT and replace it with the answer. For example try entering:\n```python\nWrite Python code for segmenting an image using these steps:\n * Apply a Gaussian blur\n * Threshold the image using Otsu's method\n * Apply connected component labeling\n```\nand it will replace it with code accordingly. If it doesn't work in the first attempt, try again. ChatGPT's answers are not always the same.\n\n![](https://github.com/haesleinhuepf/napari-script-editor/raw/main/docs/ask_chatgpt.gif)\n\n\n## Installation\n* Get a python environment, e.g. via [mini-conda](https://docs.conda.io/en/latest/miniconda.html). \n If you never used python/conda environments before, please follow the instructions \n [here](https://mpicbg-scicomp.github.io/ipf_howtoguides/guides/Python_Conda_Environments) first.\n* Install [napari](https://github.com/napari/napari) using conda. \n\n```\nconda install -c conda-forge napari\n```\n\nAfterwards, install `napari-script-editor` using pip:\n\n```\npip install napari-script-editor\n```\n\n## Contributing\n\nContributions are very welcome. Tests can be run with [tox], please ensure\nthe coverage at least stays the same before you submit a pull request.\n\n## License\n\nDistributed under the terms of the [BSD-3] license,\n\"napari-script-editor\" is free and open source software\n\n## Known issues\n\n* Sometimes, the script editor thinks, the file has been changed on disk and asks to reload it.\n\n## Issues\n\nIf you encounter any problems, please [file an issue] along with a detailed description.\n\n[napari]: https://github.com/napari/napari\n[Cookiecutter]: https://github.com/audreyr/cookiecutter\n[@napari]: https://github.com/napari\n[MIT]: http://opensource.org/licenses/MIT\n[BSD-3]: http://opensource.org/licenses/BSD-3-Clause\n[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt\n[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt\n[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0\n[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt\n[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin\n\n[file an issue]: https://github.com/haesleinhuepf/napari-script-editor/issues\n\n[napari]: https://github.com/napari/napari\n[tox]: https://tox.readthedocs.io/en/latest/\n[pip]: https://pypi.org/project/pip/\n[PyPI]: https://pypi.org/\n","description_content_type":"text/markdown","keywords":null,"home_page":"https://github.com/haesleinhuepf/napari-script-editor","download_url":null,"author":"Robert Haase","author_email":"robert.haase@tu-dresden.de","maintainer":null,"maintainer_email":null,"license":"BSD-3-Clause","classifier":["Development Status :: 3 - Alpha","Intended Audience :: Developers","Framework :: napari","Topic :: Scientific/Engineering :: Image Processing","Topic :: Text Editors :: Integrated Development Environments (IDE)","Programming Language :: Python","Programming Language :: Python :: 3","Programming Language :: Python :: 3.7","Programming Language :: Python :: 3.8","Programming Language :: Python :: 3.9","Operating System :: OS Independent","License :: OSI Approved :: BSD License"],"requires_dist":["napari-plugin-engine (>=0.1.4)","numpy","napari","haesleinhuepf-pyqode.core (>=2.15.5)","haesleinhuepf-pyqode.python (>=2.15.2)","napari-tools-menu","jedi (>=0.18.0)","pyflakes (<=2.4.0)","imageio (!=2.22.1)"],"requires_python":">=3.7","requires_external":null,"project_url":["Bug Tracker, https://github.com/haesleinhuepf/napari-script-editor/issues","Documentation, https://github.com/haesleinhuepf/napari-script-editor#README.md","Source Code, https://github.com/haesleinhuepf/napari-script-editor","User Support, https://github.com/haesleinhuepf/napari-script-editor/issues"],"provides_extra":null,"provides_dist":null,"obsoletes_dist":null},"npe1_shim":true}