Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions home/app_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ def __init__(self, app, minimalistic=False):
(self._formatted_version(version), version) for version in versions
],
)

ipw.dlink(
(self.app, "available_versions"),
(self.version_selector.version_to_install, "index"),
transform=lambda versions: 0 if versions else None,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little confused here: is 0 an index and therefore the latest version is selected by default? Maybe worth a comment.
(also why was this not necessary before?).

)

ipw.dlink(
(self.app, "installed_version"),
(self.version_selector.installed_version, "value"),
Expand Down
1 change: 1 addition & 0 deletions home/app_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def update_page_selector(self, _=None):
self.page_selector.options = list(
range(1, int(len(self.apps_to_display) / self.items_per_page.value + 2))
)
self.page_selector.value = 1
Comment thread
danielhollas marked this conversation as resolved.

# this parts makes sure that render function will always run one time only:
# if page number changed in the previous step - the render was run automatically already
Expand Down
5 changes: 1 addition & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,15 @@ classifiers =
project_urls =
Bug Tracker = https://github.com/aiidalab/aiidalab-home/issues

# TODO: Remove widgetsnbextension pin
# https://github.com/aiidalab/aiidalab-home/issues/149
[options]
packages = find:
install_requires =
Jinja2>=2.11.3,<4
Markdown>=3.4
aiidalab>=v21.10.2
ipython~=7.0
ipywidgets~=7.6
ipywidgets~=8.0
traitlets~=5.0
widgetsnbextension<3.6.3
notebook~=6.0
python_requires = >=3.9

Expand Down