hiplot-mm 0.0.2__py3-none-any.whl → 0.0.3rc0__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 (58) hide show
  1. hiplot/ipython.py +38 -6
  2. hiplot/pkginfo.py +18 -2
  3. hiplot/server.py +8 -2
  4. hiplot/static/built/hiplot.bundle.js +1 -1
  5. hiplot/static/built/streamlit_component/hiplot_streamlit.bundle.js +1 -1
  6. hiplot/streamlit_helpers.py +11 -2
  7. {hiplot_mm-0.0.2.dist-info → hiplot_mm-0.0.3rc0.dist-info}/METADATA +51 -27
  8. hiplot_mm-0.0.3rc0.dist-info/RECORD +33 -0
  9. {hiplot_mm-0.0.2.dist-info → hiplot_mm-0.0.3rc0.dist-info}/WHEEL +1 -1
  10. {hiplot_mm-0.0.2.dist-info → hiplot_mm-0.0.3rc0.dist-info}/entry_points.txt +0 -1
  11. hiplot/static/built/component.d.ts +0 -109
  12. hiplot/static/built/component.js +0 -528
  13. hiplot/static/built/contextmenu.d.ts +0 -26
  14. hiplot/static/built/contextmenu.js +0 -90
  15. hiplot/static/built/controls.d.ts +0 -52
  16. hiplot/static/built/controls.js +0 -163
  17. hiplot/static/built/filters.d.ts +0 -21
  18. hiplot/static/built/filters.js +0 -96
  19. hiplot/static/built/header.d.ts +0 -39
  20. hiplot/static/built/header.js +0 -176
  21. hiplot/static/built/hiplot-mm-0.0.0.tar.gz +0 -0
  22. hiplot/static/built/hiplot.bundle.js.LICENSE.txt +0 -88
  23. hiplot/static/built/hiplot.bundle.js.map +0 -1
  24. hiplot/static/built/hiplot.d.ts +0 -8
  25. hiplot/static/built/hiplot.js +0 -14
  26. hiplot/static/built/hiplot.lib.js +0 -57712
  27. hiplot/static/built/hiplot.lib.js.map +0 -1
  28. hiplot/static/built/hiplot.licenses.txt +0 -682
  29. hiplot/static/built/hiplot_mm-0.0.0-py3-none-any.whl +0 -0
  30. hiplot/static/built/hiplot_streamlit.bundle.js +0 -3
  31. hiplot/static/built/hiplot_streamlit.bundle.js.LICENSE.txt +0 -97
  32. hiplot/static/built/hiplot_streamlit.bundle.js.map +0 -1
  33. hiplot/static/built/hiplot_streamlit.d.ts +0 -1
  34. hiplot/static/built/hiplot_streamlit.js +0 -85
  35. hiplot/static/built/hiplot_streamlit.licenses.txt +0 -689
  36. hiplot/static/built/hiplot_test.bundle.js +0 -3
  37. hiplot/static/built/hiplot_test.bundle.js.LICENSE.txt +0 -88
  38. hiplot/static/built/hiplot_test.bundle.js.map +0 -1
  39. hiplot/static/built/hiplot_test.d.ts +0 -46
  40. hiplot/static/built/hiplot_test.js +0 -238
  41. hiplot/static/built/hiplot_test.licenses.txt +0 -682
  42. hiplot/static/built/hiplot_web.d.ts +0 -3
  43. hiplot/static/built/hiplot_web.js +0 -54
  44. hiplot/static/built/infertypes.d.ts +0 -38
  45. hiplot/static/built/infertypes.js +0 -316
  46. hiplot/static/built/plotxy.d.ts +0 -62
  47. hiplot/static/built/plotxy.js +0 -602
  48. hiplot/static/built/plugin.d.ts +0 -38
  49. hiplot/static/built/plugin.js +0 -8
  50. hiplot/static/built/rowsdisplaytable.d.ts +0 -35
  51. hiplot/static/built/rowsdisplaytable.js +0 -284
  52. hiplot/static/built/streamlit_component/hiplot.bundle.js +0 -3
  53. hiplot/static/built/types.d.ts +0 -64
  54. hiplot/static/built/types.js +0 -55
  55. hiplot_mm-0.0.2.dist-info/RECORD +0 -77
  56. {hiplot_mm-0.0.2.dist-info → hiplot_mm-0.0.3rc0.dist-info/licenses}/LICENSE +0 -0
  57. {hiplot_mm-0.0.2.dist-info → hiplot_mm-0.0.3rc0.dist-info/licenses}/NOTICE +0 -0
  58. {hiplot_mm-0.0.2.dist-info → hiplot_mm-0.0.3rc0.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"));