{"id":19102253,"url":"https://github.com/haesleinhuepf/napari-script-editor","last_synced_at":"2025-04-30T16:25:34.742Z","repository":{"id":45219901,"uuid":"425201093","full_name":"haesleinhuepf/napari-script-editor","owner":"haesleinhuepf","description":"A python script editor plugin for napari","archived":false,"fork":false,"pushed_at":"2023-07-08T17:13:19.000Z","size":36418,"stargazers_count":11,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T06:56:56.792Z","etag":null,"topics":["napari-plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haesleinhuepf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-06T09:12:52.000Z","updated_at":"2024-07-19T22:58:56.000Z","dependencies_parsed_at":"2022-07-19T00:02:04.677Z","dependency_job_id":null,"html_url":"https://github.com/haesleinhuepf/napari-script-editor","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haesleinhuepf%2Fnapari-script-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haesleinhuepf%2Fnapari-script-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haesleinhuepf%2Fnapari-script-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haesleinhuepf%2Fnapari-script-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haesleinhuepf","download_url":"https://codeload.github.com/haesleinhuepf/napari-script-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251741072,"owners_count":21636182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["napari-plugin"],"created_at":"2024-11-09T03:54:34.121Z","updated_at":"2025-04-30T16:25:34.725Z","avatar_url":"https://github.com/haesleinhuepf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 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 \u003e Scripts \u003e 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 \u003e 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaesleinhuepf%2Fnapari-script-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaesleinhuepf%2Fnapari-script-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaesleinhuepf%2Fnapari-script-editor/lists"}