widget-bandsplot


Namewidget-bandsplot JSON
Version 0.7.3 PyPI version JSON
download
home_pageNone
SummaryA Jupyter widget to plot band structure and density of states.
upload_time2024-05-21 14:24:47
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 electronic-structure jupyter jupyterlab osscar phonons widget
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Jupyter widget: Band structure visualizer

[![PyPI version](https://badge.fury.io/py/widget-bandsplot.svg)](https://badge.fury.io/py/widget-bandsplot)

A Jupyter widget to plot band structures and density of states. The widget is using the [mc-react-bands](https://github.com/materialscloud-org/mc-react-bands) Javascript package and is turned into a Jupyter widget with [anywidget](https://anywidget.dev/).

## Installation & usage

```sh
pip install widget-bandsplot
```

For usage examples, see `examples/example.ipynb`.

## Development

Install the python code:

```sh
pip install -e .[dev]
```

You then need to install the JavaScript dependencies and run the development server.

```sh
npm install
npm run dev
```

Open `examples/example.ipynb` in Jupyter notebook or lab to start developing. Changes made in `js/` will be reflected in the notebook.

### 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.

## 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-bandsplot",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "anywidget, electronic-structure, jupyter, jupyterlab, osscar, phonons, widget",
    "author": "The OSSCAR team",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/a2/6b/160e873abf4737e2732128ff1e3781257b65f57d604e0a8a5b37e0c02be9/widget_bandsplot-0.7.3.tar.gz",
    "platform": null,
    "description": "# Jupyter widget: Band structure visualizer\n\n[![PyPI version](https://badge.fury.io/py/widget-bandsplot.svg)](https://badge.fury.io/py/widget-bandsplot)\n\nA Jupyter widget to plot band structures and density of states. The widget is using the [mc-react-bands](https://github.com/materialscloud-org/mc-react-bands) Javascript package and is turned into a Jupyter widget with [anywidget](https://anywidget.dev/).\n\n## Installation & usage\n\n```sh\npip install widget-bandsplot\n```\n\nFor usage examples, see `examples/example.ipynb`.\n\n## Development\n\nInstall the python code:\n\n```sh\npip install -e .[dev]\n```\n\nYou then need to install the JavaScript dependencies and run the development server.\n\n```sh\nnpm install\nnpm run dev\n```\n\nOpen `examples/example.ipynb` in Jupyter notebook or lab to start developing. Changes made in `js/` will be reflected in the notebook.\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## 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 to plot band structure and density of states.",
    "version": "0.7.3",
    "project_urls": {
        "Home": "https://www.osscar.org/",
        "Source": "https://github.com/osscar-org/widget-bandsplot"
    },
    "split_keywords": [
        "anywidget",
        " electronic-structure",
        " jupyter",
        " jupyterlab",
        " osscar",
        " phonons",
        " widget"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "efce67f09d3f714d3369359afad588ea1dbdc850decb57ad2ec3d4edf8d9434d",
                "md5": "575d6c5ccd690ca442ca8bc580308c96",
                "sha256": "0c7dc253fa4420ab191661fa849c4832a54becad32fd421ff9769eb893e8d6a9"
            },
            "downloads": -1,
            "filename": "widget_bandsplot-0.7.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "575d6c5ccd690ca442ca8bc580308c96",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 186845,
            "upload_time": "2024-05-21T14:24:45",
            "upload_time_iso_8601": "2024-05-21T14:24:45.163082Z",
            "url": "https://files.pythonhosted.org/packages/ef/ce/67f09d3f714d3369359afad588ea1dbdc850decb57ad2ec3d4edf8d9434d/widget_bandsplot-0.7.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a26b160e873abf4737e2732128ff1e3781257b65f57d604e0a8a5b37e0c02be9",
                "md5": "53faf0a2f4a8259a0a1a01339e76dc48",
                "sha256": "9d4d9e28f1ef7c9d5edee0ec24192775d5a9b5e31c398af796bb6da643708e18"
            },
            "downloads": -1,
            "filename": "widget_bandsplot-0.7.3.tar.gz",
            "has_sig": false,
            "md5_digest": "53faf0a2f4a8259a0a1a01339e76dc48",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 184975,
            "upload_time": "2024-05-21T14:24:47",
            "upload_time_iso_8601": "2024-05-21T14:24:47.273782Z",
            "url": "https://files.pythonhosted.org/packages/a2/6b/160e873abf4737e2732128ff1e3781257b65f57d604e0a8a5b37e0c02be9/widget_bandsplot-0.7.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-21 14:24:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "osscar-org",
    "github_project": "widget-bandsplot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "widget-bandsplot"
}
        
Elapsed time: 0.23410s