Skip to content

Commit 590a4db

Browse files
committed
Move files under python/plotly
1 parent e7b6d7a commit 590a4db

File tree

18 files changed

+4767
-11676
lines changed

18 files changed

+4767
-11676
lines changed

packages/javascript/jupyterlab-plotly/package-lock.json

Lines changed: 14 additions & 11466 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/javascript/jupyterlab-plotly/package.json

Lines changed: 0 additions & 81 deletions
This file was deleted.

packages/javascript/jupyterlab-plotly/src/extension.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/javascript/jupyterlab-plotly/src/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/javascript/jupyterlab-plotly/src/jupyterlab-plugin.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

packages/javascript/jupyterlab-plotly/webpack.config.js

Lines changed: 0 additions & 72 deletions
This file was deleted.

packages/javascript/jupyterlab-plotly/src/Figure.ts renamed to packages/python/plotly/Figure.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { DOMWidgetModel } from "@jupyter-widgets/base";
2-
import _ from "https://esm.sh/lodash-es";
3-
import Plotly from "https://esm.sh/plotly.js@2.33.0/dist/plotly";
2+
import _ from "lodash-es";
3+
import Plotly from "plotly.js";
44

55
// @ts-ignore
66
window.PlotlyConfig = { MathJaxConfig: "local" };
@@ -522,7 +522,7 @@ export class FigureModel {
522522
* requested by the Python side
523523
*/
524524
_last_trace_edit_id: 0,
525-
};
525+
} as any;
526526
}
527527

528528
/**
@@ -593,7 +593,7 @@ export class FigureModel {
593593
if (msgData !== null) {
594594
var currentTraces = this.model.get("_data");
595595
var newTraces = msgData.trace_data;
596-
_.forEach(newTraces, function (newTrace) {
596+
_.forEach(newTraces, function (newTrace: any) {
597597
currentTraces.push(newTrace);
598598
});
599599
}
@@ -2069,13 +2069,13 @@ function randstr(
20692069
}
20702070

20712071
export default () => {
2072-
let model;
2072+
let model: any;
20732073
return {
2074-
initialize(ctx) {
2074+
initialize(ctx: any) {
20752075
model = new FigureModel(ctx.model, serializers);
20762076
model.initialize();
20772077
},
2078-
render({ el }) {
2078+
render({ el }: any) {
20792079
const view = new FigureView(model, el);
20802080
view.perform_render()
20812081
return () => view.remove();
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
*.bundle.*
2+
lib/
3+
node_modules/
4+
*.log
5+
.eslintcache
6+
.stylelintcache
7+
*.egg-info/
8+
.ipynb_checkpoints
9+
*.tsbuildinfo
10+
jupyterlab_plotly/labextension
11+
# Version file is handled by hatchling
12+
jupyterlab_plotly/_version.py
13+
14+
# Integration tests
15+
ui-tests/test-results/
16+
ui-tests/playwright-report/
17+
18+
# Created by https://www.gitignore.io/api/python
19+
# Edit at https://www.gitignore.io/?templates=python
20+
21+
### Python ###
22+
# Byte-compiled / optimized / DLL files
23+
__pycache__/
24+
*.py[cod]
25+
*$py.class
26+
27+
# C extensions
28+
*.so
29+
30+
# Distribution / packaging
31+
.Python
32+
build/
33+
develop-eggs/
34+
dist/
35+
downloads/
36+
eggs/
37+
.eggs/
38+
lib/
39+
lib64/
40+
parts/
41+
sdist/
42+
var/
43+
wheels/
44+
pip-wheel-metadata/
45+
share/python-wheels/
46+
.installed.cfg
47+
*.egg
48+
MANIFEST
49+
50+
# PyInstaller
51+
# Usually these files are written by a python script from a template
52+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
53+
*.manifest
54+
*.spec
55+
56+
# Installer logs
57+
pip-log.txt
58+
pip-delete-this-directory.txt
59+
60+
# Unit test / coverage reports
61+
htmlcov/
62+
.tox/
63+
.nox/
64+
.coverage
65+
.coverage.*
66+
.cache
67+
nosetests.xml
68+
coverage/
69+
coverage.xml
70+
*.cover
71+
.hypothesis/
72+
.pytest_cache/
73+
74+
# Translations
75+
*.mo
76+
*.pot
77+
78+
# Scrapy stuff:
79+
.scrapy
80+
81+
# Sphinx documentation
82+
docs/_build/
83+
84+
# PyBuilder
85+
target/
86+
87+
# pyenv
88+
.python-version
89+
90+
# celery beat schedule file
91+
celerybeat-schedule
92+
93+
# SageMath parsed files
94+
*.sage.py
95+
96+
# Spyder project settings
97+
.spyderproject
98+
.spyproject
99+
100+
# Rope project settings
101+
.ropeproject
102+
103+
# Mr Developer
104+
.mr.developer.cfg
105+
.project
106+
.pydevproject
107+
108+
# mkdocs documentation
109+
/site
110+
111+
# mypy
112+
.mypy_cache/
113+
.dmypy.json
114+
dmypy.json
115+
116+
# Pyre type checker
117+
.pyre/
118+
119+
# End of https://www.gitignore.io/api/python
120+
121+
# OSX files
122+
.DS_Store
123+
124+
# Yarn cache
125+
.yarn/

0 commit comments

Comments
 (0)