Skip to content

Commit

Permalink
Support lux.config.plotting_scale (#81)
Browse files Browse the repository at this point in the history
* Scaling width of currentVis and height of div wrapper

* Use hard coded values for example

* Frontend companion for #333

* Fix dynamic sizing

* Clean up diff

* Config traitlet
  • Loading branch information
micahtyong authored May 21, 2021
1 parent cd5ae8e commit 769fdb2
Show file tree
Hide file tree
Showing 18 changed files with 200 additions and 126 deletions.
51 changes: 51 additions & 0 deletions export.html

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions luxwidget/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
with (HERE / "labextension" / "package.json").open() as fid:
data = json.load(fid)


def _jupyter_labextension_paths():
return [{
"src": "labextension",
"dest": data["name"]
}]
return [{"src": "labextension", "dest": data["name"]}]
6 changes: 4 additions & 2 deletions luxwidget/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@

__all__ = ["__version__"]


def _fetchVersion():
HERE = Path(__file__).parent.resolve()

for settings in HERE.rglob("package.json"):
for settings in HERE.rglob("package.json"):
try:
with settings.open() as f:
return json.load(f)["version"]
Expand All @@ -15,4 +16,5 @@ def _fetchVersion():

raise FileNotFoundError(f"Could not find package.json under dir {HERE!s}")

__version__ = _fetchVersion()

__version__ = _fetchVersion()
2 changes: 1 addition & 1 deletion luxwidget/labextension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"extension": "lib/plugin",
"outputDir": "luxwidget/labextension",
"_build": {
"load": "static/remoteEntry.b28538087237c04d599f.js",
"load": "static/remoteEntry.1ce6810f857ba49ba50e.js",
"extension": "./extension",
"style": "./style"
}
Expand Down
1 change: 0 additions & 1 deletion luxwidget/labextension/static/367.2d41e8421883bf6c0575.js

This file was deleted.

1 change: 1 addition & 0 deletions luxwidget/labextension/static/367.a85726ee017058638716.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Loading

0 comments on commit 769fdb2

Please sign in to comment.