widget-code-input


Namewidget-code-input JSON
Version 4.0.14 PyPI version JSON
download
home_pageNone
SummaryA jupyter widget which allows users to implement small python functions dynamically and interactively.
upload_time2024-11-19 17:27:34
maintainerNone
docs_urlNone
authorThe OSSCAR team
requires_python>=3.9
licenseBSD 3-Clause License Copyright (c) 2024, OSSCAR (Open Software Services for Classrooms and Research) team, EPFL, Lausanne, Switzerland Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords anywidget code_editor code_input jupyter jupyterlab osscar widget
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# widget-code-input


[![PyPI version](https://badge.fury.io/py/widget-code-input.svg)](https://badge.fury.io/py/widget-code-input)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/osscar-org/widget-code-input/main?labpath=%2Fexamples%2FWidget_Demo.ipynb)
[![widget test](https://github.com/osscar-org/widget-code-input/actions/workflows/widget-test.yml/badge.svg)](https://github.com/osscar-org/widget-code-input/actions/workflows/widget-test.yml)
[![screenshot comparison](https://github.com/osscar-org/widget-code-input/actions/workflows/screenshot-comparison.yml/badge.svg)](https://github.com/osscar-org/widget-code-input/actions/workflows/screenshot-comparison.yml)

A widget to allow input of a python function, with syntax highlighting.


## Installation

You can install using `pip`:

```bash
pip install widget_code_input
```

### Releasing and publishing a new version

In order to make a new release of the library and publish to PYPI, run

```bash
bumpver update --major/--minor/--patch
```

This will

- update version numbers, make a corresponding `git commit` and a `git tag`;
- push this commit and tag to Github, which triggers the Github Action that makes a new Github Release and publishes the package to PYPI.

### Github workflow testing

[![widget test](https://github.com/osscar-org/widget-code-input/actions/workflows/widget-test.yml/badge.svg)](https://github.com/osscar-org/widget-code-input/actions/workflows/widget-test.yml)



If the `widget test` fails, it indicates there is something wrong with the code, and the widget is NOT
being displayed correctly in the test.

[![screenshot comparison](https://github.com/osscar-org/widget-code-input/actions/workflows/screenshot-comparison.yml/badge.svg)](https://github.com/osscar-org/widget-code-input/actions/workflows/screenshot-comparison.yml)


If the `widget test` passes but the `screenshot comparison` fails, it indicates the appearance of the widget 
is different from the previous version. In this case, you'll need to manually download the artifact from 
the `widget test` and use it to replace the `widget-sample.png` figure in the `test` folder.

## Acknowledgements

We acknowledge support from the EPFL Open Science Fund via the [OSSCAR](http://www.osscar.org) project.

<img src='https://www.osscar.org/_images/logos.png' width='700'>

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "widget-code-input",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "anywidget, code_editor, code_input, jupyter, jupyterlab, osscar, widget",
    "author": "The OSSCAR team",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/12/44/6f0ac1e25ad95b2754f9898255d2b486d0397947307768985f33f2943ba7/widget_code_input-4.0.14.tar.gz",
    "platform": null,
    "description": "\n# widget-code-input\n\n\n[![PyPI version](https://badge.fury.io/py/widget-code-input.svg)](https://badge.fury.io/py/widget-code-input)\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/osscar-org/widget-code-input/main?labpath=%2Fexamples%2FWidget_Demo.ipynb)\n[![widget test](https://github.com/osscar-org/widget-code-input/actions/workflows/widget-test.yml/badge.svg)](https://github.com/osscar-org/widget-code-input/actions/workflows/widget-test.yml)\n[![screenshot comparison](https://github.com/osscar-org/widget-code-input/actions/workflows/screenshot-comparison.yml/badge.svg)](https://github.com/osscar-org/widget-code-input/actions/workflows/screenshot-comparison.yml)\n\nA widget to allow input of a python function, with syntax highlighting.\n\n\n## Installation\n\nYou can install using `pip`:\n\n```bash\npip install widget_code_input\n```\n\n### Releasing and publishing a new version\n\nIn order to make a new release of the library and publish to PYPI, run\n\n```bash\nbumpver update --major/--minor/--patch\n```\n\nThis will\n\n- update version numbers, make a corresponding `git commit` and a `git tag`;\n- push this commit and tag to Github, which triggers the Github Action that makes a new Github Release and publishes the package to PYPI.\n\n### Github workflow testing\n\n[![widget test](https://github.com/osscar-org/widget-code-input/actions/workflows/widget-test.yml/badge.svg)](https://github.com/osscar-org/widget-code-input/actions/workflows/widget-test.yml)\n\n\n\nIf the `widget test` fails, it indicates there is something wrong with the code, and the widget is NOT\nbeing displayed correctly in the test.\n\n[![screenshot comparison](https://github.com/osscar-org/widget-code-input/actions/workflows/screenshot-comparison.yml/badge.svg)](https://github.com/osscar-org/widget-code-input/actions/workflows/screenshot-comparison.yml)\n\n\nIf the `widget test` passes but the `screenshot comparison` fails, it indicates the appearance of the widget \nis different from the previous version. In this case, you'll need to manually download the artifact from \nthe `widget test` and use it to replace the `widget-sample.png` figure in the `test` folder.\n\n## Acknowledgements\n\nWe acknowledge support from the EPFL Open Science Fund via the [OSSCAR](http://www.osscar.org) project.\n\n<img src='https://www.osscar.org/_images/logos.png' width='700'>\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License  Copyright (c) 2024, OSSCAR (Open Software Services for Classrooms and Research) team, EPFL, Lausanne, Switzerland  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
    "summary": "A jupyter widget which allows users to implement small python functions dynamically and interactively.",
    "version": "4.0.14",
    "project_urls": {
        "Home": "https://www.osscar.org/",
        "Source": "https://github.com/osscar-org/widget-code-input/"
    },
    "split_keywords": [
        "anywidget",
        " code_editor",
        " code_input",
        " jupyter",
        " jupyterlab",
        " osscar",
        " widget"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5ce398d6546b395f843c653d0fa84bccbe96c73aebade6aa95208619ddc986b8",
                "md5": "27e8afc0953e348283c861289f232265",
                "sha256": "f4853415f7fcb651b272f5d9a981d33fb0bbbf3832246a3620c30ecf1340ea2c"
            },
            "downloads": -1,
            "filename": "widget_code_input-4.0.14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "27e8afc0953e348283c861289f232265",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 162390,
            "upload_time": "2024-11-19T17:27:33",
            "upload_time_iso_8601": "2024-11-19T17:27:33.688441Z",
            "url": "https://files.pythonhosted.org/packages/5c/e3/98d6546b395f843c653d0fa84bccbe96c73aebade6aa95208619ddc986b8/widget_code_input-4.0.14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "12446f0ac1e25ad95b2754f9898255d2b486d0397947307768985f33f2943ba7",
                "md5": "3ed4a9eb9ce355dbf098e913309c64a8",
                "sha256": "48ec9c55d5131a3fb0df8f41ce5bbc8a4eb4d9ff575488b486ee6605e24df7c9"
            },
            "downloads": -1,
            "filename": "widget_code_input-4.0.14.tar.gz",
            "has_sig": false,
            "md5_digest": "3ed4a9eb9ce355dbf098e913309c64a8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 160285,
            "upload_time": "2024-11-19T17:27:34",
            "upload_time_iso_8601": "2024-11-19T17:27:34.857424Z",
            "url": "https://files.pythonhosted.org/packages/12/44/6f0ac1e25ad95b2754f9898255d2b486d0397947307768985f33f2943ba7/widget_code_input-4.0.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-19 17:27:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "osscar-org",
    "github_project": "widget-code-input",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "widget-code-input"
}
        
Elapsed time: 0.36727s