hiplot-mm 0.0.2__py3-none-any.whl → 0.0.3rc1__py3-none-any.whl

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.
Files changed (64) hide show
  1. hiplot/__init__.py +1 -1
  2. hiplot/fetchers.py +1 -1
  3. hiplot/fetchers_demo.py +2 -2
  4. hiplot/ipython.py +40 -8
  5. hiplot/pkginfo.py +11 -2
  6. hiplot/render.py +2 -2
  7. hiplot/server.py +9 -3
  8. hiplot/static/built/hiplot.bundle.js +1 -1
  9. hiplot/static/built/streamlit_component/hiplot_streamlit.bundle.js +1 -1
  10. hiplot/streamlit_helpers.py +11 -2
  11. hiplot/test_render.py +2 -2
  12. hiplot_mm-0.0.3rc1.dist-info/METADATA +174 -0
  13. hiplot_mm-0.0.3rc1.dist-info/RECORD +33 -0
  14. {hiplot_mm-0.0.2.dist-info → hiplot_mm-0.0.3rc1.dist-info}/WHEEL +1 -1
  15. {hiplot_mm-0.0.2.dist-info → hiplot_mm-0.0.3rc1.dist-info}/entry_points.txt +1 -2
  16. hiplot/static/built/component.d.ts +0 -109
  17. hiplot/static/built/component.js +0 -528
  18. hiplot/static/built/contextmenu.d.ts +0 -26
  19. hiplot/static/built/contextmenu.js +0 -90
  20. hiplot/static/built/controls.d.ts +0 -52
  21. hiplot/static/built/controls.js +0 -163
  22. hiplot/static/built/filters.d.ts +0 -21
  23. hiplot/static/built/filters.js +0 -96
  24. hiplot/static/built/header.d.ts +0 -39
  25. hiplot/static/built/header.js +0 -176
  26. hiplot/static/built/hiplot-mm-0.0.0.tar.gz +0 -0
  27. hiplot/static/built/hiplot.bundle.js.LICENSE.txt +0 -88
  28. hiplot/static/built/hiplot.bundle.js.map +0 -1
  29. hiplot/static/built/hiplot.d.ts +0 -8
  30. hiplot/static/built/hiplot.js +0 -14
  31. hiplot/static/built/hiplot.lib.js +0 -57712
  32. hiplot/static/built/hiplot.lib.js.map +0 -1
  33. hiplot/static/built/hiplot.licenses.txt +0 -682
  34. hiplot/static/built/hiplot_mm-0.0.0-py3-none-any.whl +0 -0
  35. hiplot/static/built/hiplot_streamlit.bundle.js +0 -3
  36. hiplot/static/built/hiplot_streamlit.bundle.js.LICENSE.txt +0 -97
  37. hiplot/static/built/hiplot_streamlit.bundle.js.map +0 -1
  38. hiplot/static/built/hiplot_streamlit.d.ts +0 -1
  39. hiplot/static/built/hiplot_streamlit.js +0 -85
  40. hiplot/static/built/hiplot_streamlit.licenses.txt +0 -689
  41. hiplot/static/built/hiplot_test.bundle.js +0 -3
  42. hiplot/static/built/hiplot_test.bundle.js.LICENSE.txt +0 -88
  43. hiplot/static/built/hiplot_test.bundle.js.map +0 -1
  44. hiplot/static/built/hiplot_test.d.ts +0 -46
  45. hiplot/static/built/hiplot_test.js +0 -238
  46. hiplot/static/built/hiplot_test.licenses.txt +0 -682
  47. hiplot/static/built/hiplot_web.d.ts +0 -3
  48. hiplot/static/built/hiplot_web.js +0 -54
  49. hiplot/static/built/infertypes.d.ts +0 -38
  50. hiplot/static/built/infertypes.js +0 -316
  51. hiplot/static/built/plotxy.d.ts +0 -62
  52. hiplot/static/built/plotxy.js +0 -602
  53. hiplot/static/built/plugin.d.ts +0 -38
  54. hiplot/static/built/plugin.js +0 -8
  55. hiplot/static/built/rowsdisplaytable.d.ts +0 -35
  56. hiplot/static/built/rowsdisplaytable.js +0 -284
  57. hiplot/static/built/streamlit_component/hiplot.bundle.js +0 -3
  58. hiplot/static/built/types.d.ts +0 -64
  59. hiplot/static/built/types.js +0 -55
  60. hiplot_mm-0.0.2.dist-info/METADATA +0 -106
  61. hiplot_mm-0.0.2.dist-info/RECORD +0 -77
  62. {hiplot_mm-0.0.2.dist-info → hiplot_mm-0.0.3rc1.dist-info/licenses}/LICENSE +0 -0
  63. {hiplot_mm-0.0.2.dist-info → hiplot_mm-0.0.3rc1.dist-info/licenses}/NOTICE +0 -0
  64. {hiplot_mm-0.0.2.dist-info → hiplot_mm-0.0.3rc1.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- export {};
@@ -1,85 +0,0 @@
1
- /*
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- var __extends = (this && this.__extends) || (function () {
8
- var extendStatics = function (d, b) {
9
- extendStatics = Object.setPrototypeOf ||
10
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12
- return extendStatics(d, b);
13
- };
14
- return function (d, b) {
15
- extendStatics(d, b);
16
- function __() { this.constructor = d; }
17
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
- };
19
- })();
20
- import React from "react";
21
- import { withStreamlitConnection, StreamlitComponentBase, Streamlit, } from "./streamlit";
22
- import { HiPlot } from "./hiplot";
23
- import ReactDOM from "react-dom";
24
- ;
25
- var ReactTemplate = /** @class */ (function (_super) {
26
- __extends(ReactTemplate, _super);
27
- function ReactTemplate(props) {
28
- var _this = _super.call(this, props) || this;
29
- _this.render = function () {
30
- // Arguments that are passed to the plugin in Python are accessible
31
- // via `this.props.args`. Here, we access the "name" arg.
32
- var onChangeHandlers = {
33
- 'selected_uids': _this.onChange.bind(_this),
34
- 'filtered_uids': _this.onChange.bind(_this),
35
- 'brush_extents': _this.onChange.bind(_this),
36
- 'height_changed': function () { return Streamlit.setFrameHeight(); }
37
- };
38
- return React.createElement(HiPlot, { experiment: _this.state.experiment, onChange: onChangeHandlers });
39
- };
40
- _this.onChange = function (type, data) {
41
- var _a;
42
- // @ts-ignore
43
- _this.setState((_a = {}, _a[type] = data, _a));
44
- Streamlit.setFrameHeight();
45
- };
46
- _this.state = {
47
- selected_uids: null,
48
- filtered_uids: null,
49
- brush_extents: null,
50
- experiment: eval('(' + props.args.experiment + ')'),
51
- experimentJson: props.args.experiment
52
- };
53
- return _this;
54
- }
55
- ReactTemplate.prototype.componentDidUpdate = function (prevProps, prevState) {
56
- var ret = this.props.args["ret"];
57
- var changed = false;
58
- var py_ret = ret.map(function (r) {
59
- if (this.state[r] != prevState[r]) {
60
- console.log(r, "changed");
61
- changed = true;
62
- }
63
- return this.state[r];
64
- }.bind(this));
65
- if (changed || JSON.stringify(this.props.args.ret) != JSON.stringify(prevProps.args.ret)) {
66
- console.log("hiplot update return", py_ret, {
67
- 'prevProps.args.ret': prevProps.args.ret,
68
- 'this.props.args.ret': this.props.args.ret,
69
- 'changed': changed
70
- });
71
- Streamlit.setComponentValue(py_ret);
72
- }
73
- var newExp = this.props.args['experiment'];
74
- if (newExp != this.state.experimentJson) {
75
- this.setState({
76
- experiment: eval('(' + newExp + ')'),
77
- experimentJson: newExp
78
- });
79
- }
80
- Streamlit.setFrameHeight();
81
- };
82
- return ReactTemplate;
83
- }(StreamlitComponentBase));
84
- var componentWrapped = withStreamlitConnection(ReactTemplate);
85
- ReactDOM.render(React.createElement(React.StrictMode, null, React.createElement(componentWrapped)), document.getElementById("root"));