Name | ipywebgl JSON |
Version |
0.3.0
JSON |
| download |
home_page | |
Summary | WebGL2 jupyter widget |
upload_time | 2023-04-13 09:36:00 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7 |
license | Copyright (c) 2023 Jerome Eippers All rights reserved. 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 |
ipython
jupyter
widgets
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# ipywebgl
<p align="center">
<img src="docs/images/logo_256.png"/><br>
A WebGL2 widget for Jupyter Lab
</p>
[](https://ipywebgl.readthedocs.io/en/latest/?badge=latest)
## Introduction
This module is exposing a part of the WebGL2 context. Is is assumed that you are familiar with the concepts and commands.
You can find more information about it here : https://webgl2fundamentals.org/
There is some major differences still :
- All the WebGL2 commands are called on the GLViewer instead of a gl context.
- All the API is written in *snake_case* instead of *camelCase*, so for example ``gl.drawArrays(...)`` in JavaScript becomes ``widget.draw_arrays(...)`` in Python
- Masks parameters are replaced by positional attribute, so for example ``gl.clear(gl.DEPTH_BUFFER_BIT | gl.COLOR_BUFFER_BIT);`` in JavaScript becomes ``widget.clear(depth_buffer_bit=True, color_buffer_bit=True)`` in Python
- Enums are replaced by strings, so for example ``gl.bufferData(gl.ARRAY_BUFFER, data, gl.DYNAMIC_DRAW);`` in JavaScript becomes ``widget.buffer_data("ARRAY_BUFFER", data, "DYNAMIC_DRAW")`` in Python
- There is no delete functions, once something is created it stays created (we are in a prototype environment).
- You will find some 'Extended' methods that can simplify some calls like the ``create_vertex_array_ext`` that will create and link the programs and buffers all at once.
Not all the functions are exposed as of today.
If you need more, feel free to ask on github https://github.com/JeromeEippers/ipywebgl.
All the commands you call on the GLViewer are push to a commands buffer. That commands buffer is only flushed when you call the execute_commands() method.
## Installation
You can install using `pip`:
```bash
pip install ipywebgl
```
Raw data
{
"_id": null,
"home_page": "",
"name": "ipywebgl",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "IPython,Jupyter,Widgets",
"author": "",
"author_email": "Jerome Eippers <jerome@eippers.be>",
"download_url": "https://files.pythonhosted.org/packages/a3/cc/0c8cdd1aab9213e50b7594db0c98483d39787dae470fa4a3f8f98126cba1/ipywebgl-0.3.0.tar.gz",
"platform": null,
"description": "\n# ipywebgl\n\n<p align=\"center\">\n<img src=\"docs/images/logo_256.png\"/><br>\nA WebGL2 widget for Jupyter Lab\n</p>\n\n[](https://ipywebgl.readthedocs.io/en/latest/?badge=latest)\n\n## Introduction\n\nThis module is exposing a part of the WebGL2 context. Is is assumed that you are familiar with the concepts and commands.\nYou can find more information about it here : https://webgl2fundamentals.org/\n\nThere is some major differences still :\n\n- All the WebGL2 commands are called on the GLViewer instead of a gl context.\n- All the API is written in *snake_case* instead of *camelCase*, so for example ``gl.drawArrays(...)`` in JavaScript becomes ``widget.draw_arrays(...)`` in Python\n- Masks parameters are replaced by positional attribute, so for example ``gl.clear(gl.DEPTH_BUFFER_BIT | gl.COLOR_BUFFER_BIT);`` in JavaScript becomes ``widget.clear(depth_buffer_bit=True, color_buffer_bit=True)`` in Python\n- Enums are replaced by strings, so for example ``gl.bufferData(gl.ARRAY_BUFFER, data, gl.DYNAMIC_DRAW);`` in JavaScript becomes ``widget.buffer_data(\"ARRAY_BUFFER\", data, \"DYNAMIC_DRAW\")`` in Python\n- There is no delete functions, once something is created it stays created (we are in a prototype environment).\n- You will find some 'Extended' methods that can simplify some calls like the ``create_vertex_array_ext`` that will create and link the programs and buffers all at once.\n\nNot all the functions are exposed as of today.\nIf you need more, feel free to ask on github https://github.com/JeromeEippers/ipywebgl.\n\nAll the commands you call on the GLViewer are push to a commands buffer. That commands buffer is only flushed when you call the execute_commands() method.\n\n## Installation\n\nYou can install using `pip`:\n\n```bash\npip install ipywebgl\n```\n",
"bugtrack_url": null,
"license": "Copyright (c) 2023 Jerome Eippers All rights reserved. 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": "WebGL2 jupyter widget",
"version": "0.3.0",
"split_keywords": [
"ipython",
"jupyter",
"widgets"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c7165aeba4df4c4549ef2bba788fdad8aba472802b46916b65d748d3c161d8e1",
"md5": "9591dedb5a6c36d93307af06ccb59155",
"sha256": "236771b2d4111efa7ed8863e2868f6f227b60e4438406daa796fd9d1fca0fc52"
},
"downloads": -1,
"filename": "ipywebgl-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9591dedb5a6c36d93307af06ccb59155",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 192832,
"upload_time": "2023-04-13T09:35:57",
"upload_time_iso_8601": "2023-04-13T09:35:57.432033Z",
"url": "https://files.pythonhosted.org/packages/c7/16/5aeba4df4c4549ef2bba788fdad8aba472802b46916b65d748d3c161d8e1/ipywebgl-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a3cc0c8cdd1aab9213e50b7594db0c98483d39787dae470fa4a3f8f98126cba1",
"md5": "3f747d8a4ce49879afcaf8590f2ac982",
"sha256": "386a9a0ec7a3b0eff11fe590a410ad3ac5312a51f7f5e0a5db764ae559e9b68a"
},
"downloads": -1,
"filename": "ipywebgl-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "3f747d8a4ce49879afcaf8590f2ac982",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 1998976,
"upload_time": "2023-04-13T09:36:00",
"upload_time_iso_8601": "2023-04-13T09:36:00.866583Z",
"url": "https://files.pythonhosted.org/packages/a3/cc/0c8cdd1aab9213e50b7594db0c98483d39787dae470fa4a3f8f98126cba1/ipywebgl-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-13 09:36:00",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "ipywebgl"
}