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
@@ -18,7 +18,9 @@ class _StreamlitHelpers:
18
18
  def is_running_within_streamlit() -> bool:
19
19
  try:
20
20
  from streamlit import runtime
21
- except: # pylint: disable=bare-except
21
+ except ImportError:
22
+ return False
23
+ except Exception: # pylint: disable=broad-except
22
24
  return False
23
25
  return bool(runtime.exists())
24
26
 
@@ -26,10 +28,17 @@ class _StreamlitHelpers:
26
28
  def create_component(cls) -> tp.Optional[tp.Callable[..., tp.Any]]:
27
29
  if cls.component is not None:
28
30
  return cls.component
29
- from streamlit import runtime
31
+ try:
32
+ from streamlit import runtime
33
+ except ImportError as e:
34
+ raise ImportError(
35
+ "Streamlit is required for Streamlit support. "
36
+ "Install it with: pip install hiplot-mm[streamlit]"
37
+ ) from e
30
38
  try:
31
39
  import streamlit.components.v1 as components
32
40
  except ModuleNotFoundError as e:
41
+ import streamlit as st
33
42
  raise RuntimeError(f"""Your streamlit version ({st.__version__}) is too old and does not support components.
34
43
  Please update streamlit with `pip install -U streamlit`""") from e
35
44
  assert runtime.exists()
@@ -1,35 +1,61 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: hiplot-mm
3
- Version: 0.0.2
3
+ Version: 0.0.3rc0
4
4
  Summary: High dimensional Interactive Plotting tool
5
- Home-page: https://github.com/facebookresearch/hiplot
6
- Author: Facebook AI Research
7
- License: UNKNOWN
8
- Platform: UNKNOWN
9
- Requires-Python: >=3.6
5
+ Author: Facebook AI Research, mathematicalmichael @ Mind the Math, LLC
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/facebookresearch/hiplot
8
+ Project-URL: Documentation, https://facebookresearch.github.io/hiplot/
9
+ Project-URL: Repository, https://github.com/facebookresearch/hiplot
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.8
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Topic :: Scientific/Engineering :: Visualization
23
+ Requires-Python: >=3.8
10
24
  Description-Content-Type: text/markdown
11
25
  License-File: LICENSE
12
26
  License-File: NOTICE
13
- Requires-Dist: ipython >=7.0.1
14
- Requires-Dist: flask
15
- Requires-Dist: flask-compress
16
27
  Requires-Dist: beautifulsoup4
28
+ Requires-Dist: jinja2
29
+ Provides-Extra: server
30
+ Requires-Dist: flask; extra == "server"
31
+ Requires-Dist: flask-compress; extra == "server"
32
+ Provides-Extra: notebook
33
+ Requires-Dist: ipython>=7.0.1; extra == "notebook"
34
+ Requires-Dist: ipykernel; extra == "notebook"
35
+ Provides-Extra: streamlit
36
+ Requires-Dist: streamlit>=0.63; extra == "streamlit"
37
+ Provides-Extra: all
38
+ Requires-Dist: hiplot-mm[notebook,server,streamlit]; extra == "all"
17
39
  Provides-Extra: dev
18
- Requires-Dist: pytest ; extra == 'dev'
19
- Requires-Dist: mypy ; extra == 'dev'
20
- Requires-Dist: ipykernel ; extra == 'dev'
21
- Requires-Dist: wheel ; extra == 'dev'
22
- Requires-Dist: selenium ; extra == 'dev'
23
- Requires-Dist: mistune ==0.8.4 ; extra == 'dev'
24
- Requires-Dist: twine ; extra == 'dev'
25
- Requires-Dist: pre-commit ; extra == 'dev'
26
- Requires-Dist: pandas ; extra == 'dev'
27
- Requires-Dist: streamlit >=0.63 ; extra == 'dev'
28
- Requires-Dist: beautifulsoup4 ; extra == 'dev'
29
- Requires-Dist: optuna ; extra == 'dev'
30
- Requires-Dist: sphinx ==5.2.0 ; extra == 'dev'
31
- Requires-Dist: guzzle-sphinx-theme ==0.7.11 ; extra == 'dev'
32
- Requires-Dist: m2r2 ==0.3.3 ; extra == 'dev'
40
+ Requires-Dist: pytest; extra == "dev"
41
+ Requires-Dist: mypy; extra == "dev"
42
+ Requires-Dist: ipykernel; extra == "dev"
43
+ Requires-Dist: wheel; extra == "dev"
44
+ Requires-Dist: selenium; extra == "dev"
45
+ Requires-Dist: mistune==0.8.4; extra == "dev"
46
+ Requires-Dist: twine; extra == "dev"
47
+ Requires-Dist: pre-commit; extra == "dev"
48
+ Requires-Dist: pandas; extra == "dev"
49
+ Requires-Dist: streamlit>=0.63; extra == "dev"
50
+ Requires-Dist: beautifulsoup4; extra == "dev"
51
+ Requires-Dist: optuna; extra == "dev"
52
+ Requires-Dist: sphinx==5.2.0; extra == "dev"
53
+ Requires-Dist: guzzle_sphinx_theme==0.7.11; extra == "dev"
54
+ Requires-Dist: m2r2==0.3.3; extra == "dev"
55
+ Requires-Dist: flask; extra == "dev"
56
+ Requires-Dist: flask-compress; extra == "dev"
57
+ Requires-Dist: ipython>=7.0.1; extra == "dev"
58
+ Dynamic: license-file
33
59
 
34
60
  # HiPlot - High dimensional Interactive Plotting [![CircleCI](https://circleci.com/gh/facebookresearch/hiplot/tree/main.svg?style=svg&circle-token=c89b6825078e174cf35bdc18e4ad4a16e28876f9)](https://circleci.com/gh/facebookresearch/hiplot/tree/main)
35
61
 
@@ -102,5 +128,3 @@ External contributors (*please add your name when you submit your first pull req
102
128
 
103
129
  ## License
104
130
  HiPlot is [MIT](LICENSE) licensed, as found in the [LICENSE](LICENSE) file.
105
-
106
-
@@ -0,0 +1,33 @@
1
+ hiplot/__init__.py,sha256=ZioLWYAwqgLk99RZ1-CqLnxZ35HEytcBHMOARShZNrg,893
2
+ hiplot/__main__.py,sha256=iTsr-pqySeHZ1_Uk-F0O5BOsVJjWslG7z2YZm2KkFpE,283
3
+ hiplot/compress.py,sha256=9J2rLJVtZX-EHjdySsGekA0LeOxpmwaB8SnsLA1esco,964
4
+ hiplot/experiment.py,sha256=d00uvhw-yrMES9IZ0sk9yFL9FwNV_KTPrq11cIyEVA4,24652
5
+ hiplot/fetchers.py,sha256=yWrjxZxizlHbJyTEmbQpJPUVuSXwRH0PNj4Leq7HZ38,11570
6
+ hiplot/fetchers_demo.py,sha256=CCEgZlBzknEGWJSsZGraZEOs5mI437tC4n-5nzBL91I,13014
7
+ hiplot/ipython.py,sha256=KkKWjD1iRnKz_5AF1N3Z8idRakyP1rd8gKG1XBDYhJE,7766
8
+ hiplot/pkginfo.py,sha256=J_F1jsYaW85WDcVIIZMjWoqgGdTRaG38Sf1o1TgocrQ,785
9
+ hiplot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ hiplot/render.py,sha256=l5idAf75n6LRupcRhwXwTYpNbgUM-eK6JMTb0_Wjr50,3723
11
+ hiplot/server.py,sha256=JXEKt2UD8SEJOcG2kcdgDpb_XaQhgYmrwG9pA2_p85w,2429
12
+ hiplot/streamlit_helpers.py,sha256=ZClfgbafgHWFQi0E16CgzdfKz8-AACRIe2DqryDM0fM,5214
13
+ hiplot/test_experiment.py,sha256=dOFpq6qEjexvRRGOkpNjWzrDpcVw8ckCOktCGJFdUr0,6748
14
+ hiplot/test_fetchers.py,sha256=zXMN15E22_yNUU_YPcKWx9L4XAyZi1I1yr30cBlmkB0,2208
15
+ hiplot/test_render.py,sha256=-HUJqFoiSuWAyHG4TE9VwPzfYa2Khf6qMnBTo93cjsM,2141
16
+ hiplot/static/icon-w.svg,sha256=0hfr9tMtWZPOS_GXVOE3s03I4JZ9WFBn7RyyOW9GN0w,1160
17
+ hiplot/static/icon.png,sha256=hSllX0zW4r-6Cn8nqfiG9WbkGFU0HE3fTQyjBLg0dXE,21466
18
+ hiplot/static/icon.svg,sha256=MDyI5uC4n5FAmMKKqNBmUUhigmxDnjmEeB6FtuSTBGI,1151
19
+ hiplot/static/logo-w.svg,sha256=Ptvs98gsgr0Qk12LnbglQKx2lSfs6Hc4TUTx6Mk9hF0,2274
20
+ hiplot/static/logo.png,sha256=Rd7cq4aMlvQmSrL5OKrOWcucDngQgkt5ZUUKO2i4uRE,15653
21
+ hiplot/static/logo.svg,sha256=vzVSSRpfkuCMuW3RhmrwRk9JkKb2YtHeQIO9f_LFW1k,2265
22
+ hiplot/static/thumbnail.png,sha256=SX3sY85PxZ5y0LbPWzoSWGXHvU-fgBBZgW7zxMT_3hk,45290
23
+ hiplot/static/built/hiplot.bundle.js,sha256=JLmV-e0dko-pLDXB9G5P5Q_xFi1eZTXqDS1PHaYOvyc,1575408
24
+ hiplot/static/built/streamlit_component/hiplot_streamlit.bundle.js,sha256=CGjKr29mzzoLyqK5QhmDgJFKvaLjiFwBmgpvppRXK2A,1558281
25
+ hiplot/static/built/streamlit_component/index.html,sha256=9zbuZu0iE1vFr2cy0ulrP3l34i8W_3-Mkl_JCPVq-tc,512
26
+ hiplot/templates/index.html,sha256=cwt7fGGdz3UHxHZAh3EMnudmwMauGV7Jp8YOUxtSFPE,1281
27
+ hiplot_mm-0.0.3rc0.dist-info/licenses/LICENSE,sha256=UkEte8fOQVfqYou6rLiCngqcs8WPV_mRdhJryM8r_IU,1086
28
+ hiplot_mm-0.0.3rc0.dist-info/licenses/NOTICE,sha256=BgJexxrr6wJp6w2Sh51mRAiLn1ymNC5o6F5KrnUV8Do,11609
29
+ hiplot_mm-0.0.3rc0.dist-info/METADATA,sha256=50tuPJEBfhKnwF34ceYfhRiNrbU5OcYlcOD4friNwVg,6316
30
+ hiplot_mm-0.0.3rc0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
31
+ hiplot_mm-0.0.3rc0.dist-info/entry_points.txt,sha256=KQKYaXRcaURkOHNj3XwTQrejNQT5f23CstllSqN34_c,106
32
+ hiplot_mm-0.0.3rc0.dist-info/top_level.txt,sha256=J1kKpj7DXS676kMWcep6U8rHfAHrL1YQWAwhjcHMpMU,7
33
+ hiplot_mm-0.0.3rc0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,4 +1,3 @@
1
1
  [console_scripts]
2
2
  hiplot = hiplot.server:run_server_main
3
3
  hiplot-render = hiplot.render:hiplot_render_main
4
-
@@ -1,109 +0,0 @@
1
- import React from "react";
2
- import './style/global';
3
- import { Datapoint, HiPlotExperiment, HiPlotLoadStatus, DatapointLookup, IDatasets } from "./types";
4
- import { ParamDefMap } from "./infertypes";
5
- import { PersistentState } from "./lib/savedstate";
6
- import { HiPlotPluginData, DataProviderClass } from "./plugin";
7
- import { ContextMenu } from "./contextmenu";
8
- import { Filter } from "./filters";
9
- export { PlotXY } from "./plotxy";
10
- export { ParallelPlot } from "./parallel/parallel";
11
- export { RowsDisplayTable } from "./rowsdisplaytable";
12
- export { HiPlotPluginData } from "./plugin";
13
- export { Datapoint, HiPlotExperiment, IDatasets, HiPlotLoadStatus } from "./types";
14
- declare type PluginComponent<P> = React.Component<P, any>;
15
- declare type PluginComponentClass<P> = React.ComponentClass<P>;
16
- declare type PluginClass = React.ClassType<HiPlotPluginData, PluginComponent<HiPlotPluginData>, PluginComponentClass<HiPlotPluginData>>;
17
- interface PluginsMap {
18
- [k: string]: PluginClass;
19
- }
20
- declare type LoadURIPromiseResult = {
21
- experiment: HiPlotExperiment;
22
- } | {
23
- error: string;
24
- };
25
- export declare type LoadURIPromise = Promise<LoadURIPromiseResult>;
26
- interface CancelablePromise {
27
- promise: LoadURIPromise;
28
- cancel: () => void;
29
- }
30
- export interface HiPlotProps {
31
- experiment: HiPlotExperiment | null;
32
- plugins: PluginsMap;
33
- persistentState?: PersistentState;
34
- onChange: {
35
- [k: string]: (type: string, data: any) => void;
36
- };
37
- dark: boolean;
38
- asserts: boolean;
39
- dataProvider: DataProviderClass;
40
- }
41
- interface HiPlotState extends IDatasets {
42
- experiment: HiPlotExperiment | null;
43
- loadStatus: HiPlotLoadStatus;
44
- loadPromise: CancelablePromise | null;
45
- error: string;
46
- params_def: ParamDefMap;
47
- params_def_unfiltered: ParamDefMap;
48
- dp_lookup: DatapointLookup;
49
- colorby: string;
50
- colormap: string;
51
- rows_filtered_filters: Array<Filter>;
52
- rows_selected_filter: Filter;
53
- persistentState: PersistentState;
54
- dark: boolean;
55
- dataProvider: DataProviderClass;
56
- }
57
- export declare enum DefaultPlugins {
58
- PARALLEL_PLOT = "PARALLEL_PLOT",
59
- XY = "XY",
60
- DISTRIBUTION = "DISTRIBUTION",
61
- TABLE = "TABLE"
62
- }
63
- export declare const defaultPlugins: PluginsMap;
64
- export declare function createDefaultPlugins(): PluginsMap;
65
- export declare class HiPlot extends React.Component<HiPlotProps, HiPlotState> {
66
- contextMenuRef: React.RefObject<ContextMenu>;
67
- rootRef: React.RefObject<HTMLDivElement>;
68
- plugins_window_state: {
69
- [plugin: string]: any;
70
- };
71
- plugins_ref: {
72
- [plugin: string]: React.RefObject<PluginClass>;
73
- };
74
- constructor(props: HiPlotProps);
75
- static defaultProps: {
76
- loadURI: any;
77
- comm: any;
78
- dark: boolean;
79
- asserts: boolean;
80
- plugins: PluginsMap;
81
- experiment: any;
82
- dataProvider: any;
83
- onChange: any;
84
- };
85
- static getDerivedStateFromError(error: Error): {
86
- experiment: any;
87
- loadStatus: HiPlotLoadStatus;
88
- error: string;
89
- };
90
- makeDatasets(experiment: HiPlotExperiment | null, dp_lookup: DatapointLookup, initial_filters: Array<Filter>): IDatasets;
91
- sendMessage(type: string, get_data: () => any): void;
92
- callSelectedUidsHooks: any;
93
- callFilteredUidsHooks: any;
94
- _loadExperiment(experiment: HiPlotExperiment): void;
95
- getColorForRow(trial: Datapoint, alpha: number): string;
96
- loadWithPromise(prom: LoadURIPromise): void;
97
- componentWillUnmount(): void;
98
- componentDidMount(): void;
99
- componentDidUpdate(prevProps: HiPlotProps, prevState: HiPlotState): void;
100
- columnContextMenu(column: string, cm: HTMLDivElement): void;
101
- createNewParamsDef(rows_filtered: Array<Datapoint>): ParamDefMap;
102
- restoreAllRows(): void;
103
- filterRows(keep: boolean): void;
104
- setSelected(rows: Array<Datapoint>, filter?: Filter | null): void;
105
- setHighlighted(rows: Array<Datapoint>): void;
106
- renderRowText(row: Datapoint): string;
107
- render(): JSX.Element;
108
- getPlugin<P extends HiPlotPluginData, T extends React.Component<P>>(cls: React.ClassType<P, T, React.ComponentClass<P>>): T;
109
- }