perspective-python 3.8.0__tar.gz → 4.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {perspective_python-3.8.0 → perspective_python-4.0.1}/Cargo.toml +5 -5
- {perspective_python-3.8.0 → perspective_python-4.0.1}/LICENSE_THIRDPARTY_cargo.yml +4 -4
- {perspective_python-3.8.0 → perspective_python-4.0.1}/PKG-INFO +3 -3
- {perspective_python-3.8.0 → perspective_python-4.0.1}/docs/lib.md +28 -27
- {perspective_python-3.8.0 → perspective_python-4.0.1}/package.json +10 -11
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/__init__.py +9 -9
- perspective_python-4.0.1/perspective/extension/finos-perspective-nbextension.json +5 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/multi_threaded/test_multi_threaded.py +46 -3
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_table_arrow.py +31 -1
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_view.py +25 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/widget/__init__.py +4 -4
- {perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab → perspective_python-4.0.1/perspective_python-4.0.1.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab}/package.json +16 -26
- perspective_python-4.0.1/perspective_python-4.0.1.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/253.36bec0d7805c88a1a9e0.js +16 -0
- perspective_python-4.0.1/perspective_python-4.0.1.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/253.36bec0d7805c88a1a9e0.js.LICENSE.txt +25 -0
- perspective_python-4.0.1/perspective_python-4.0.1.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/523.3bed59a0a88940832f98.js +1 -0
- perspective_python-4.0.1/perspective_python-4.0.1.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/remoteEntry.ae4df995a1ddcfc2727b.js +1 -0
- {perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab → perspective_python-4.0.1/perspective_python-4.0.1.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab}/static/style.js +1 -1
- {perspective_python-3.8.0 → perspective_python-4.0.1}/pyproject.toml +1 -1
- perspective_python-3.8.0/perspective/extension/finos-perspective-nbextension.json +0 -5
- perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab/static/253.e30b6884e47a9553ecfc.js +0 -16
- perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab/static/253.e30b6884e47a9553ecfc.js.LICENSE.txt +0 -63
- perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab/static/815.de1b4b53d57212354a6c.js +0 -1
- perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab/static/remoteEntry.0c4df9cdbab87a425a95.js +0 -1
- {perspective_python-3.8.0 → perspective_python-4.0.1}/LICENSE.md +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/README.md +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/build.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/docs/index.html +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/handlers/__init__.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/handlers/aiohttp.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/handlers/starlette.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/handlers/tornado.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/templates/exported_widget.html.template +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/__init__.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/async/test_async_client.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/async/test_websocket_client.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/conftest.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/core/__init__.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/core/test_async.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/multi_threaded/__init__.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/server/__init__.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/server/test_server.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/server/test_session.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/__init__.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/arrow/date32.arrow +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/arrow/date64.arrow +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/arrow/dict.arrow +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/arrow/dict_update.arrow +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/arrow/int_float_str.arrow +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/arrow/int_float_str_file.arrow +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/arrow/int_float_str_update.arrow +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/object_sequence.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_column_paths.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_delete.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_exception.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_leaks.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_ports.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_remove.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_table.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_table_datetime.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_table_infer.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_table_limit.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_table_numpy.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_table_pandas.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_table_polars.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_to_arrow.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_to_arrow_lz4.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_to_format.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_to_polars.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_update.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_update_arrow.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_update_pandas.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_view_expression.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/test_dependencies.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/viewer/__init__.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/viewer/test_viewer.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/widget/__init__.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/widget/test_widget.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/widget/test_widget_pandas.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/widget/viewer/__init__.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/widget/viewer/validate.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/widget/viewer/viewer.py +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/widget/viewer/viewer_traitlets.py +0 -0
- {perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab → perspective_python-4.0.1/perspective_python-4.0.1.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab}/install.json +0 -0
- {perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab → perspective_python-4.0.1/perspective_python-4.0.1.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab}/static/third-party-licenses.json +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/client/client_async.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/client/client_sync.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/client/mod.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/client/pandas.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/client/polars.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/client/proxy_session.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/client/pyarrow.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/client/table_data.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/client/update_data.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/lib.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/py_async.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/py_err.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/server/mod.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/server/server_async.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/server/server_sync.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/server/session_async.rs +0 -0
- {perspective_python-3.8.0 → perspective_python-4.0.1}/src/server/session_sync.rs +0 -0
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
|
|
13
13
|
[package]
|
|
14
14
|
name = "perspective-python"
|
|
15
|
-
version = "
|
|
15
|
+
version = "4.0.1"
|
|
16
16
|
edition = "2024"
|
|
17
17
|
description = "A data visualization and analytics component, especially well-suited for large and/or streaming datasets."
|
|
18
|
-
repository = "https://github.com/
|
|
18
|
+
repository = "https://github.com/perspective-dev/perspective"
|
|
19
19
|
license = "Apache-2.0"
|
|
20
|
-
homepage = "https://perspective.
|
|
20
|
+
homepage = "https://perspective-dev.github.io"
|
|
21
21
|
authors = ["Andrew Stein <steinlink@gmail.com>"]
|
|
22
22
|
keywords = []
|
|
23
23
|
build = "build.rs"
|
|
@@ -57,8 +57,8 @@ pyo3-build-config = "0.22.6"
|
|
|
57
57
|
python-config-rs = "0.1.2"
|
|
58
58
|
|
|
59
59
|
[dependencies]
|
|
60
|
-
perspective-client = { version = "
|
|
61
|
-
perspective-server = { version = "
|
|
60
|
+
perspective-client = { version = "4.0.1" }
|
|
61
|
+
perspective-server = { version = "4.0.1" }
|
|
62
62
|
macro_rules_attribute = "0.2.0"
|
|
63
63
|
async-lock = "2.5.0"
|
|
64
64
|
pollster = "0.3.0"
|
|
@@ -2911,15 +2911,15 @@ third_party_libraries:
|
|
|
2911
2911
|
|
|
2912
2912
|
END OF TERMS AND CONDITIONS
|
|
2913
2913
|
- package_name: perspective-client
|
|
2914
|
-
package_version:
|
|
2915
|
-
repository: https://github.com/
|
|
2914
|
+
package_version: 4.0.1
|
|
2915
|
+
repository: https://github.com/perspective-dev/perspective
|
|
2916
2916
|
license: Apache-2.0
|
|
2917
2917
|
licenses:
|
|
2918
2918
|
- license: Apache-2.0
|
|
2919
2919
|
text: "# Apache License\n\n_Version 2.0, January 2004_ \n_<<http://www.apache.org/licenses/>>_\n\n### Terms and Conditions for use, reproduction, and distribution\n\n#### 1. Definitions\n\n“License” shall mean the terms and conditions for use, reproduction, and\ndistribution as defined by Sections 1 through 9 of this document.\n\n“Licensor” shall mean the copyright owner or entity authorized by the copyright\nowner that is granting the License.\n\n“Legal Entity” shall mean the union of the acting entity and all other entities\nthat control, are controlled by, or are under common control with that entity.\nFor the purposes of this definition, “control” means **(i)** the power, direct or\nindirect, to cause the direction or management of such entity, whether by\ncontract or otherwise, or **(ii)** ownership of fifty percent (50%) or more of the\noutstanding shares, or **(iii)** beneficial ownership of such entity.\n\n“You” (or “Your”) shall mean an individual or Legal Entity exercising\npermissions granted by this License.\n\n“Source” form shall mean the preferred form for making modifications, including\nbut not limited to software source code, documentation source, and configuration\nfiles.\n\n“Object” form shall mean any form resulting from mechanical transformation or\ntranslation of a Source form, including but not limited to compiled object code,\ngenerated documentation, and conversions to other media types.\n\n“Work” shall mean the work of authorship, whether in Source or Object form, made\navailable under the License, as indicated by a copyright notice that is included\nin or attached to the work (an example is provided in the Appendix below).\n\n“Derivative Works” shall mean any work, whether in Source or Object form, that\nis based on (or derived from) the Work and for which the editorial revisions,\nannotations, elaborations, or other modifications represent, as a whole, an\noriginal work of authorship. For the purposes of this License, Derivative Works\nshall not include works that remain separable from, or merely link (or bind by\nname) to the interfaces of, the Work and Derivative Works thereof.\n\n“Contribution” shall mean any work of authorship, including the original version\nof the Work and any modifications or additions to that Work or Derivative Works\nthereof, that is intentionally submitted to Licensor for inclusion in the Work\nby the copyright owner or by an individual or Legal Entity authorized to submit\non behalf of the copyright owner. For the purposes of this definition,\n“submitted” means any form of electronic, verbal, or written communication sent\nto the Licensor or its representatives, including but not limited to\ncommunication on electronic mailing lists, source code control systems, and\nissue tracking systems that are managed by, or on behalf of, the Licensor for\nthe purpose of discussing and improving the Work, but excluding communication\nthat is conspicuously marked or otherwise designated in writing by the copyright\nowner as “Not a Contribution.”\n\n“Contributor” shall mean Licensor and any individual or Legal Entity on behalf\nof whom a Contribution has been received by Licensor and subsequently\nincorporated within the Work.\n\n#### 2. Grant of Copyright License\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable copyright license to reproduce, prepare Derivative Works of,\npublicly display, publicly perform, sublicense, and distribute the Work and such\nDerivative Works in Source or Object form.\n\n#### 3. Grant of Patent License\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable (except as stated in this section) patent license to make, have\nmade, use, offer to sell, sell, import, and otherwise transfer the Work, where\nsuch license applies only to those patent claims licensable by such Contributor\nthat are necessarily infringed by their Contribution(s) alone or by combination\nof their Contribution(s) with the Work to which such Contribution(s) was\nsubmitted. If You institute patent litigation against any entity (including a\ncross-claim or counterclaim in a lawsuit) alleging that the Work or a\nContribution incorporated within the Work constitutes direct or contributory\npatent infringement, then any patent licenses granted to You under this License\nfor that Work shall terminate as of the date such litigation is filed.\n\n#### 4. Redistribution\n\nYou may reproduce and distribute copies of the Work or Derivative Works thereof\nin any medium, with or without modifications, and in Source or Object form,\nprovided that You meet the following conditions:\n\n- **(a)** You must give any other recipients of the Work or Derivative Works a copy of\n this License; and\n- **(b)** You must cause any modified files to carry prominent notices stating that You\n changed the files; and\n- **(c)** You must retain, in the Source form of any Derivative Works that You distribute,\n all copyright, patent, trademark, and attribution notices from the Source form\n of the Work, excluding those notices that do not pertain to any part of the\n Derivative Works; and\n- **(d)** If the Work includes a “NOTICE” text file as part of its distribution, then any\n Derivative Works that You distribute must include a readable copy of the\n attribution notices contained within such NOTICE file, excluding those notices\n that do not pertain to any part of the Derivative Works, in at least one of the\n following places: within a NOTICE text file distributed as part of the\n Derivative Works; within the Source form or documentation, if provided along\n with the Derivative Works; or, within a display generated by the Derivative\n Works, if and wherever such third-party notices normally appear. The contents of\n the NOTICE file are for informational purposes only and do not modify the\n License. You may add Your own attribution notices within Derivative Works that\n You distribute, alongside or as an addendum to the NOTICE text from the Work,\n provided that such additional attribution notices cannot be construed as\n modifying the License.\n\nYou may add Your own copyright statement to Your modifications and may provide\nadditional or different license terms and conditions for use, reproduction, or\ndistribution of Your modifications, or for any such Derivative Works as a whole,\nprovided Your use, reproduction, and distribution of the Work otherwise complies\nwith the conditions stated in this License.\n\n#### 5. Submission of Contributions\n\nUnless You explicitly state otherwise, any Contribution intentionally submitted\nfor inclusion in the Work by You to the Licensor shall be under the terms and\nconditions of this License, without any additional terms or conditions.\nNotwithstanding the above, nothing herein shall supersede or modify the terms of\nany separate license agreement you may have executed with Licensor regarding\nsuch Contributions.\n\n#### 6. Trademarks\n\nThis License does not grant permission to use the trade names, trademarks,\nservice marks, or product names of the Licensor, except as required for\nreasonable and customary use in describing the origin of the Work and\nreproducing the content of the NOTICE file.\n\n#### 7. Disclaimer of Warranty\n\nUnless required by applicable law or agreed to in writing, Licensor provides the\nWork (and each Contributor provides its Contributions) on an “AS IS” BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,\nincluding, without limitation, any warranties or conditions of TITLE,\nNON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are\nsolely responsible for determining the appropriateness of using or\nredistributing the Work and assume any risks associated with Your exercise of\npermissions under this License.\n\n#### 8. Limitation of Liability\n\nIn no event and under no legal theory, whether in tort (including negligence),\ncontract, or otherwise, unless required by applicable law (such as deliberate\nand grossly negligent acts) or agreed to in writing, shall any Contributor be\nliable to You for damages, including any direct, indirect, special, incidental,\nor consequential damages of any character arising as a result of this License or\nout of the use or inability to use the Work (including but not limited to\ndamages for loss of goodwill, work stoppage, computer failure or malfunction, or\nany and all other commercial damages or losses), even if such Contributor has\nbeen advised of the possibility of such damages.\n\n#### 9. Accepting Warranty or Additional Liability\n\nWhile redistributing the Work or Derivative Works thereof, You may choose to\noffer, and charge a fee for, acceptance of support, warranty, indemnity, or\nother liability obligations and/or rights consistent with this License. However,\nin accepting such obligations, You may act only on Your own behalf and on Your\nsole responsibility, not on behalf of any other Contributor, and only if You\nagree to indemnify, defend, and hold each Contributor harmless for any liability\nincurred by, or claims asserted against, such Contributor by reason of your\naccepting any such warranty or additional liability.\n\n_END OF TERMS AND CONDITIONS_\n\n### APPENDIX: How to apply the Apache License to your work\n\nTo apply the Apache License to your work, attach the following boilerplate\nnotice, with the fields enclosed by brackets `[]` replaced with your own\nidentifying information. (Don't include the brackets!) The text should be\nenclosed in the appropriate comment syntax for the file format. We also\nrecommend that a file or class name and description of purpose be included on\nthe same “printed page” as the copyright notice for easier identification within\nthird-party archives.\n\n Copyright 2019 The Perspective Authors\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"
|
|
2920
2920
|
- package_name: perspective-server
|
|
2921
|
-
package_version:
|
|
2922
|
-
repository: https://github.com/
|
|
2921
|
+
package_version: 4.0.1
|
|
2922
|
+
repository: https://github.com/perspective-dev/perspective
|
|
2923
2923
|
license: Apache-2.0
|
|
2924
2924
|
licenses:
|
|
2925
2925
|
- license: Apache-2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: perspective-python
|
|
3
|
-
Version:
|
|
3
|
+
Version: 4.0.1
|
|
4
4
|
Classifier: Development Status :: 5 - Production/Stable
|
|
5
5
|
Classifier: Programming Language :: Rust
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
@@ -22,13 +22,13 @@ Provides-Extra: tornado
|
|
|
22
22
|
Provides-Extra: aiohttp
|
|
23
23
|
Provides-Extra: starlette
|
|
24
24
|
Summary: A data visualization and analytics component, especially well-suited for large and/or streaming datasets.
|
|
25
|
-
Home-page: https://perspective.
|
|
25
|
+
Home-page: https://perspective-dev.github.io
|
|
26
26
|
Author: Andrew Stein <steinlink@gmail.com>
|
|
27
27
|
Author-email: Andrew Stein <steinlink@gmail.com>
|
|
28
28
|
License: Apache-2.0
|
|
29
29
|
Requires-Python: >=3.9
|
|
30
30
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
31
|
-
Project-URL: Source Code, https://github.com/
|
|
31
|
+
Project-URL: Source Code, https://github.com/perspective-dev/perspective
|
|
32
32
|
|
|
33
33
|
# `perspective-python`
|
|
34
34
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
The Python language bindings for
|
|
2
|
-
|
|
1
|
+
The Python language bindings for
|
|
2
|
+
[Perspective](https://perspective-dev.github.io), a high performance
|
|
3
|
+
data-visualization and analytics component for the web browser.
|
|
3
4
|
|
|
4
5
|
<div class="warning">
|
|
5
6
|
The examples in this module are in Python. See <a href="https://docs.rs/crate/perspective/latest"><code>perspective</code></a> docs for the Rust API.
|
|
@@ -47,25 +48,25 @@ makes it simple to extend a Tornado server with virtual Perspective support.
|
|
|
47
48
|
|
|
48
49
|
The `perspective` module exports several tools:
|
|
49
50
|
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
-
|
|
61
|
-
|
|
51
|
+
- `Server` the constructor for a new isntance of the Perspective data engine.
|
|
52
|
+
- The `perspective.widget` module exports `PerspectiveWidget`, the JupyterLab
|
|
53
|
+
widget for interactive visualization in a notebook cell.
|
|
54
|
+
- The `perspective.handlers` modules exports web frameworks handlers that
|
|
55
|
+
interface with a `perspective-client` in JavaScript.
|
|
56
|
+
- `perspective.handlers.tornado.PerspectiveTornadoHandler` for
|
|
57
|
+
[Tornado](https://www.tornadoweb.org/)
|
|
58
|
+
- `perspective.handlers.starlette.PerspectiveStarletteHandler` for
|
|
59
|
+
[Starlette](https://www.starlette.io/) and
|
|
60
|
+
[FastAPI](https://fastapi.tiangolo.com)
|
|
61
|
+
- `perspective.handlers.aiohttp.PerspectiveAIOHTTPHandler` for
|
|
62
|
+
[AIOHTTP](https://docs.aiohttp.org),
|
|
62
63
|
|
|
63
64
|
This user's guide provides an overview of the most common ways to use
|
|
64
65
|
Perspective in Python: the `Table` API, the JupyterLab widget, and the Tornado
|
|
65
66
|
handler.
|
|
66
67
|
|
|
67
|
-
[More Examples](https://github.com/
|
|
68
|
-
available on GitHub.
|
|
68
|
+
[More Examples](https://github.com/perspective-dev/perspective/tree/master/examples)
|
|
69
|
+
are available on GitHub.
|
|
69
70
|
|
|
70
71
|
## Installation
|
|
71
72
|
|
|
@@ -98,11 +99,11 @@ A `Table` can be created from a dataset or a schema, the specifics of which are
|
|
|
98
99
|
guide. In Python, however, Perspective supports additional data types that are
|
|
99
100
|
commonly used when processing data:
|
|
100
101
|
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
105
|
-
-
|
|
102
|
+
- `pandas.DataFrame`
|
|
103
|
+
- `polars.DataFrame`
|
|
104
|
+
- `bytes` (encoding an Apache Arrow)
|
|
105
|
+
- `objects` (either extracting a repr or via reference)
|
|
106
|
+
- `str` (encoding as a CSV)
|
|
106
107
|
|
|
107
108
|
A `Table` is created in a similar fashion to its JavaScript equivalent:
|
|
108
109
|
|
|
@@ -159,7 +160,7 @@ _local time_ according to the Python runtime.
|
|
|
159
160
|
|
|
160
161
|
This behavior is consistent with Perspective's behavior in JavaScript. For more
|
|
161
162
|
details, see this in-depth
|
|
162
|
-
[explanation](https://github.com/
|
|
163
|
+
[explanation](https://github.com/perspective-dev/perspective/pull/867) of
|
|
163
164
|
`perspective-python` semantics around time zone handling.
|
|
164
165
|
|
|
165
166
|
### Callbacks and Events
|
|
@@ -231,7 +232,7 @@ Using Tornado and
|
|
|
231
232
|
`Perspective`'s JavaScript library, we can set up "distributed" Perspective
|
|
232
233
|
instances that allows multiple browser `perspective-viewer` clients to read from
|
|
233
234
|
a common `perspective-python` server, as in the
|
|
234
|
-
[Tornado Example Project](https://github.com/
|
|
235
|
+
[Tornado Example Project](https://github.com/perspective-dev/perspective/tree/master/examples/python-tornado).
|
|
235
236
|
|
|
236
237
|
This architecture works by maintaining two `Tables`—one on the server, and one
|
|
237
238
|
on the client that mirrors the server's `Table` automatically using `on_update`.
|
|
@@ -278,7 +279,7 @@ _*index.html*_
|
|
|
278
279
|
// Create a client that expects a Perspective server
|
|
279
280
|
// to accept connections at the specified URL.
|
|
280
281
|
const websocket = await perspective.websocket(
|
|
281
|
-
"ws://localhost:8888/websocket"
|
|
282
|
+
"ws://localhost:8888/websocket",
|
|
282
283
|
);
|
|
283
284
|
|
|
284
285
|
// Get a handle to the Table on the server
|
|
@@ -298,12 +299,12 @@ _*index.html*_
|
|
|
298
299
|
|
|
299
300
|
For a more complex example that offers distributed editing of the server
|
|
300
301
|
dataset, see
|
|
301
|
-
[client_server_editing.html](https://github.com/
|
|
302
|
+
[client_server_editing.html](https://github.com/perspective-dev/perspective/blob/master/examples/python-tornado/client_server_editing.html).
|
|
302
303
|
|
|
303
304
|
We also provide examples for Starlette/FastAPI and AIOHTTP:
|
|
304
305
|
|
|
305
|
-
-
|
|
306
|
-
-
|
|
306
|
+
- [Starlette Example Project](https://github.com/perspective-dev/perspective/tree/master/examples/python-starlette).
|
|
307
|
+
- [AIOHTTP Example Project](https://github.com/perspective-dev/perspective/tree/master/examples/python-aiohttp).
|
|
307
308
|
|
|
308
309
|
### Server-only Mode
|
|
309
310
|
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@
|
|
3
|
-
"version": "
|
|
2
|
+
"name": "@perspective-dev/python",
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"private": true,
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/
|
|
8
|
+
"url": "https://github.com/perspective-dev/perspective"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "node build.mjs",
|
|
14
|
-
"clean": "
|
|
13
|
+
"build": "node ./build.mjs",
|
|
14
|
+
"clean": "node ./clean.mjs",
|
|
15
15
|
"test": "node test.mjs",
|
|
16
16
|
"docs": "pdoc perspective/__init__.py perspective/handlers/aiohttp.py, perspective/handlers/starlette.py perspective/handlers/tornado.py perspective/widget/__init__.py -o ../../docs/static/python && node docs.mjs"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"tar": "^7.4.3"
|
|
19
|
+
"@perspective-dev/scripts": "workspace:*",
|
|
20
|
+
"@iarna/toml": "catalog:",
|
|
21
|
+
"tar": "catalog:",
|
|
22
|
+
"zx": "catalog:"
|
|
24
23
|
},
|
|
25
24
|
"dependencies": {
|
|
26
|
-
"@
|
|
25
|
+
"@perspective-dev/jupyterlab": "workspace:*"
|
|
27
26
|
}
|
|
28
27
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
# ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
|
|
11
11
|
# ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
|
|
12
12
|
|
|
13
|
-
__version__ = "
|
|
13
|
+
__version__ = "4.0.1"
|
|
14
14
|
__all__ = [
|
|
15
15
|
"_jupyter_labextension_paths",
|
|
16
16
|
"Server",
|
|
@@ -27,7 +27,7 @@ __all__ = [
|
|
|
27
27
|
]
|
|
28
28
|
|
|
29
29
|
__doc__ = """
|
|
30
|
-
The Python language bindings for [Perspective](https://perspective.
|
|
30
|
+
The Python language bindings for [Perspective](https://perspective-dev.github.io), a
|
|
31
31
|
high performance data-visualization and analytics component for the web browser.
|
|
32
32
|
|
|
33
33
|
A simple example which loads an [Apache Arrow](https://arrow.apache.org/) and
|
|
@@ -89,7 +89,7 @@ This user's guide provides an overview of the most common ways to use
|
|
|
89
89
|
Perspective in Python: the `Table` API, the JupyterLab widget, and the Tornado
|
|
90
90
|
handler.
|
|
91
91
|
|
|
92
|
-
[More Examples](https://github.com/
|
|
92
|
+
[More Examples](https://github.com/perspective-dev/perspective/tree/master/examples) are
|
|
93
93
|
available on GitHub.
|
|
94
94
|
|
|
95
95
|
## Installation
|
|
@@ -172,7 +172,7 @@ _local time_ according to the Python runtime.
|
|
|
172
172
|
|
|
173
173
|
This behavior is consistent with Perspective's behavior in JavaScript. For more
|
|
174
174
|
details, see this in-depth
|
|
175
|
-
[explanation](https://github.com/
|
|
175
|
+
[explanation](https://github.com/perspective-dev/perspective/pull/867) of
|
|
176
176
|
`perspective-python` semantics around time zone handling.
|
|
177
177
|
|
|
178
178
|
#### Callbacks and Events
|
|
@@ -244,7 +244,7 @@ Using Tornado and
|
|
|
244
244
|
`Perspective`'s JavaScript library, we can set up "distributed" Perspective
|
|
245
245
|
instances that allows multiple browser `perspective-viewer` clients to read from
|
|
246
246
|
a common `perspective-python` server, as in the
|
|
247
|
-
[Tornado Example Project](https://github.com/
|
|
247
|
+
[Tornado Example Project](https://github.com/perspective-dev/perspective/tree/master/examples/python-tornado).
|
|
248
248
|
|
|
249
249
|
This architecture works by maintaining two `Tables`—one on the server, and one
|
|
250
250
|
on the client that mirrors the server's `Table` automatically using `on_update`.
|
|
@@ -311,12 +311,12 @@ _*index.html*_
|
|
|
311
311
|
|
|
312
312
|
For a more complex example that offers distributed editing of the server
|
|
313
313
|
dataset, see
|
|
314
|
-
[client_server_editing.html](https://github.com/
|
|
314
|
+
[client_server_editing.html](https://github.com/perspective-dev/perspective/blob/master/examples/python-tornado/client_server_editing.html).
|
|
315
315
|
|
|
316
316
|
We also provide examples for Starlette/FastAPI and AIOHTTP:
|
|
317
317
|
|
|
318
|
-
- [Starlette Example Project](https://github.com/
|
|
319
|
-
- [AIOHTTP Example Project](https://github.com/
|
|
318
|
+
- [Starlette Example Project](https://github.com/perspective-dev/perspective/tree/master/examples/python-starlette).
|
|
319
|
+
- [AIOHTTP Example Project](https://github.com/perspective-dev/perspective/tree/master/examples/python-aiohttp).
|
|
320
320
|
|
|
321
321
|
### Server-only Mode
|
|
322
322
|
|
|
@@ -389,4 +389,4 @@ def _jupyter_labextension_paths():
|
|
|
389
389
|
Read by `jupyter labextension develop`
|
|
390
390
|
@private
|
|
391
391
|
"""
|
|
392
|
-
return [{"src": "labextension", "dest": "@
|
|
392
|
+
return [{"src": "labextension", "dest": "@perspective-dev/jupyterlab"}]
|
|
@@ -16,6 +16,10 @@ import asyncio
|
|
|
16
16
|
import random
|
|
17
17
|
import threading
|
|
18
18
|
|
|
19
|
+
from random import sample
|
|
20
|
+
from string import ascii_letters
|
|
21
|
+
from threading import Thread
|
|
22
|
+
from time import sleep
|
|
19
23
|
|
|
20
24
|
class TestServer(object):
|
|
21
25
|
def test_sync_updates_with_loop_callback_are_sync(self):
|
|
@@ -86,9 +90,7 @@ class TestServer(object):
|
|
|
86
90
|
loop.close()
|
|
87
91
|
|
|
88
92
|
def test_concurrent_updates_with_limit_tables_are_threadsafe(self):
|
|
89
|
-
|
|
90
|
-
# chance of triggering this o my dev machine
|
|
91
|
-
TEST_ITERATIONS = 1000
|
|
93
|
+
TEST_ITERATIONS = 100
|
|
92
94
|
global running
|
|
93
95
|
perspective_server = Server()
|
|
94
96
|
client = perspective_server.new_local_client()
|
|
@@ -156,3 +158,44 @@ class TestServer(object):
|
|
|
156
158
|
thread2.start()
|
|
157
159
|
thread1.join()
|
|
158
160
|
thread2.join()
|
|
161
|
+
|
|
162
|
+
def test_concurrent_view_creation_with_updates_are_threadsafe(self):
|
|
163
|
+
global running
|
|
164
|
+
s = Server()
|
|
165
|
+
schema = {
|
|
166
|
+
"a": "string",
|
|
167
|
+
"b": "string",
|
|
168
|
+
"c": "string",
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
group_bys = ["a", "b", "c"]
|
|
172
|
+
c = s.new_local_client()
|
|
173
|
+
t = c.table(schema, limit=10000)
|
|
174
|
+
running = True
|
|
175
|
+
|
|
176
|
+
def gen_views():
|
|
177
|
+
global running
|
|
178
|
+
for _ in range(100):
|
|
179
|
+
t.view(columns=list(schema.keys()), group_by=group_bys)
|
|
180
|
+
sleep(0.01)
|
|
181
|
+
running = False
|
|
182
|
+
|
|
183
|
+
def run_psp():
|
|
184
|
+
global running
|
|
185
|
+
while running:
|
|
186
|
+
t.update(
|
|
187
|
+
[
|
|
188
|
+
{
|
|
189
|
+
"a": "".join(sample(ascii_letters, 4)),
|
|
190
|
+
"b": "".join(sample(ascii_letters, 4)),
|
|
191
|
+
"c": "".join(sample(ascii_letters, 4)),
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
thread1 = Thread(target=run_psp, daemon=True)
|
|
197
|
+
thread2 = Thread(target=gen_views, daemon=True)
|
|
198
|
+
thread1.start()
|
|
199
|
+
thread2.start()
|
|
200
|
+
thread1.join()
|
|
201
|
+
thread2.join()
|
{perspective_python-3.8.0 → perspective_python-4.0.1}/perspective/tests/table/test_table_arrow.py
RENAMED
|
@@ -15,8 +15,11 @@ import numpy as np
|
|
|
15
15
|
import pandas as pd
|
|
16
16
|
from perspective.tests.conftest import Util
|
|
17
17
|
import pyarrow as pa
|
|
18
|
+
import pyarrow.ipc as ipc
|
|
18
19
|
from datetime import date, datetime
|
|
19
20
|
import perspective as psp
|
|
21
|
+
import io
|
|
22
|
+
|
|
20
23
|
|
|
21
24
|
client = psp.Server().new_local_client()
|
|
22
25
|
Table = client.table
|
|
@@ -25,11 +28,38 @@ DATE32_ARROW = os.path.join(os.path.dirname(__file__), "arrow", "date32.arrow")
|
|
|
25
28
|
DATE64_ARROW = os.path.join(os.path.dirname(__file__), "arrow", "date64.arrow")
|
|
26
29
|
DICT_ARROW = os.path.join(os.path.dirname(__file__), "arrow", "dict.arrow")
|
|
27
30
|
|
|
31
|
+
|
|
28
32
|
names = ["a", "b", "c", "d"]
|
|
29
33
|
|
|
34
|
+
# Create sample data for every integer type
|
|
35
|
+
ALL_INTEGERS_DATA = {
|
|
36
|
+
"int8": pa.array([1, 2, 3], type=pa.int8()),
|
|
37
|
+
"int16": pa.array([1000, 2000, 3000], type=pa.int16()),
|
|
38
|
+
"int32": pa.array([100000, 200000, 300000], type=pa.int32()),
|
|
39
|
+
"int64": pa.array([10000000000, 20000000000, 30000000000], type=pa.int64()),
|
|
40
|
+
"uint8": pa.array([1, 2, 3], type=pa.uint8()),
|
|
41
|
+
"uint16": pa.array([1000, 2000, 3000], type=pa.uint16()),
|
|
42
|
+
"uint32": pa.array([100000, 200000, 300000], type=pa.uint32()),
|
|
43
|
+
"uint64": pa.array([10000000000, 20000000000, 30000000000], type=pa.uint64()),
|
|
44
|
+
"float32": pa.array([100000.0, 200000.0, 300000.0], type=pa.float32()),
|
|
45
|
+
"float64": pa.array(
|
|
46
|
+
[10000000000.0, 20000000000.0, 30000000000.0], type=pa.float64()
|
|
47
|
+
),
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
ALL_INTEGERS_TABLE = pa.Table.from_pydict(ALL_INTEGERS_DATA)
|
|
51
|
+
|
|
52
|
+
bytes_io = io.BytesIO()
|
|
53
|
+
with ipc.new_stream(bytes_io, ALL_INTEGERS_TABLE.schema) as stream:
|
|
54
|
+
stream.write_table(ALL_INTEGERS_TABLE)
|
|
55
|
+
ALL_INTEGERS_ARROW = bytes_io.getvalue()
|
|
30
56
|
|
|
31
57
|
class TestTableArrow(object):
|
|
32
|
-
|
|
58
|
+
def test_table_with_integer_types(self):
|
|
59
|
+
tbl = Table(ALL_INTEGERS_ARROW)
|
|
60
|
+
for k, values in ALL_INTEGERS_DATA.items():
|
|
61
|
+
v = tbl.view(filter=[[k, "==", values[0].as_py()]])
|
|
62
|
+
assert len(v.to_json()) == 1
|
|
33
63
|
|
|
34
64
|
def test_table_arrow_loads_date32_file(self, util: Util):
|
|
35
65
|
with open(DATE32_ARROW, mode="rb") as file: # b is important -> binary
|
|
@@ -1474,6 +1474,31 @@ class TestView(object):
|
|
|
1474
1474
|
{"a": util.to_timestamp(datetime(2019, 7, 11, () * 1000)), "b": 4}
|
|
1475
1475
|
]
|
|
1476
1476
|
|
|
1477
|
+
def test_view_filter_datetime_as_number_eq(self, util):
|
|
1478
|
+
data = [
|
|
1479
|
+
{"a": datetime(2019, 7, 11, 8, 15).timestamp(), "b": 2},
|
|
1480
|
+
{"a": datetime(2019, 7, 11, 8, 16).timestamp(), "b": 4},
|
|
1481
|
+
]
|
|
1482
|
+
|
|
1483
|
+
tbl = Table({"a": "datetime", "b": "integer"})
|
|
1484
|
+
tbl.update(data)
|
|
1485
|
+
view = tbl.view(filter=[["a", "==", datetime(2019, 7, 11, 8, 15).timestamp()]])
|
|
1486
|
+
assert view.to_records() == [
|
|
1487
|
+
{"a": datetime(2019, 7, 11, 8, 15).timestamp(), "b": 2}
|
|
1488
|
+
]
|
|
1489
|
+
|
|
1490
|
+
def test_view_filter_datetime_as_number_neq(self, util):
|
|
1491
|
+
data = [
|
|
1492
|
+
{"a": datetime(2019, 7, 11, 8, 15).timestamp(), "b": 2},
|
|
1493
|
+
{"a": datetime(2019, 7, 11, 8, 16).timestamp(), "b": 4},
|
|
1494
|
+
]
|
|
1495
|
+
tbl = Table({"a": "datetime", "b": "integer"})
|
|
1496
|
+
tbl.update(data)
|
|
1497
|
+
view = tbl.view(filter=[["a", "!=", datetime(2019, 7, 11, 8, 15).timestamp()]])
|
|
1498
|
+
assert view.to_records() == [
|
|
1499
|
+
{"a": datetime(2019, 7, 11, 8, 16).timestamp(), "b": 4}
|
|
1500
|
+
]
|
|
1501
|
+
|
|
1477
1502
|
def test_view_filter_datetime_str_eq(self, util):
|
|
1478
1503
|
data = [
|
|
1479
1504
|
{"a": datetime(2019, 7, 11, 8, 15), "b": 2},
|
|
@@ -125,10 +125,10 @@ class PerspectiveWidget(DOMWidget, PerspectiveViewer):
|
|
|
125
125
|
|
|
126
126
|
# Required by ipywidgets for proper registration of the backend
|
|
127
127
|
_model_name = Unicode("PerspectiveModel").tag(sync=True)
|
|
128
|
-
_model_module = Unicode("@
|
|
128
|
+
_model_module = Unicode("@perspective-dev/jupyterlab").tag(sync=True)
|
|
129
129
|
_model_module_version = Unicode("~{}".format(__version__)).tag(sync=True)
|
|
130
130
|
_view_name = Unicode("PerspectiveView").tag(sync=True)
|
|
131
|
-
_view_module = Unicode("@
|
|
131
|
+
_view_module = Unicode("@perspective-dev/jupyterlab").tag(sync=True)
|
|
132
132
|
_view_module_version = Unicode("~{}".format(__version__)).tag(sync=True)
|
|
133
133
|
|
|
134
134
|
def __init__(
|
|
@@ -316,8 +316,8 @@ class PerspectiveWidget(DOMWidget, PerspectiveViewer):
|
|
|
316
316
|
path = f"cdn/{module}.js"
|
|
317
317
|
|
|
318
318
|
# perspective developer affordance: works with your local `pnpm run start blocks`
|
|
319
|
-
# return f"http://localhost:8080/node_modules/@
|
|
320
|
-
return f"https://cdn.jsdelivr.net/npm/@
|
|
319
|
+
# return f"http://localhost:8080/node_modules/@perspective-dev/{module}/dist/{path}"
|
|
320
|
+
return f"https://cdn.jsdelivr.net/npm/@perspective-dev/{module}@{__version__}/dist/{path}"
|
|
321
321
|
|
|
322
322
|
return super(DOMWidget, self)._repr_mimebundle_(**kwargs) | {
|
|
323
323
|
"text/html": template.substitute(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@
|
|
3
|
-
"version": "
|
|
2
|
+
"name": "@perspective-dev/jupyterlab",
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "A Jupyterlab extension for the Perspective library, designed to be used with perspective-python.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**/*",
|
|
@@ -17,39 +17,29 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"build": "node build.mjs"
|
|
24
|
-
"clean": "npm-run-all clean:*",
|
|
25
|
-
"clean:dist": "rimraf dist",
|
|
26
|
-
"clean:lib": "rimraf lib",
|
|
27
|
-
"clean:labextension": "rimraf ../../rust/perspective-python/perspective/labextension",
|
|
28
|
-
"clean:nbextension": "rimraf ../../rust/perspective-python/perspective/nbextension/static",
|
|
29
|
-
"test:build": "node build.mjs --test",
|
|
30
|
-
"test:jupyter:build": "cpy \"test/arrow/*\" dist/esm",
|
|
31
|
-
"test:jupyter": "__JUPYTERLAB_PORT__=6538 npx playwright test --config ../../tools/perspective-test/playwright.config.ts -- --jupyter",
|
|
32
|
-
"test": "npm-run-all test:build",
|
|
33
|
-
"version": "yarn build"
|
|
20
|
+
"build": "node ./build.mjs",
|
|
21
|
+
"clean": "node ./clean.mjs",
|
|
22
|
+
"test:jupyter": "__JUPYTERLAB_PORT__=6538 npx playwright test --config ../../tools/test/playwright.config.ts -- --jupyter",
|
|
23
|
+
"test:jupyter:build": "node ./build.mjs --test"
|
|
34
24
|
},
|
|
35
25
|
"dependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
26
|
+
"@perspective-dev/viewer-d3fc": "workspace:",
|
|
27
|
+
"@perspective-dev/viewer-datagrid": "workspace:",
|
|
28
|
+
"@perspective-dev/viewer-openlayers": "workspace:",
|
|
29
|
+
"@perspective-dev/viewer": "workspace:",
|
|
30
|
+
"@perspective-dev/client": "workspace:",
|
|
31
|
+
"@perspective-dev/server": "workspace:",
|
|
41
32
|
"@jupyter-widgets/base": ">2 <5",
|
|
42
33
|
"@jupyterlab/application": ">2 <5",
|
|
43
34
|
"@lumino/application": "<3",
|
|
44
35
|
"@lumino/widgets": "<3"
|
|
45
36
|
},
|
|
46
37
|
"devDependencies": {
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
38
|
+
"@perspective-dev/esbuild-plugin": "workspace:",
|
|
39
|
+
"@perspective-dev/test": "workspace:",
|
|
49
40
|
"@jupyterlab/builder": "^4",
|
|
50
|
-
"copy-webpack-plugin": "~12",
|
|
51
41
|
"@prospective.co/procss": "^0.1.16",
|
|
52
|
-
"
|
|
42
|
+
"copy-webpack-plugin": "~12",
|
|
53
43
|
"zx": "^8.1.8"
|
|
54
44
|
},
|
|
55
45
|
"jupyterlab": {
|
|
@@ -73,7 +63,7 @@
|
|
|
73
63
|
}
|
|
74
64
|
},
|
|
75
65
|
"_build": {
|
|
76
|
-
"load": "static/remoteEntry.
|
|
66
|
+
"load": "static/remoteEntry.ae4df995a1ddcfc2727b.js",
|
|
77
67
|
"extension": "./extension",
|
|
78
68
|
"style": "./style"
|
|
79
69
|
}
|