Skip to content

Commit

Permalink
jupyrdfGH-116: Add buffer to SelectMultiple (jupyrdf#117)
Browse files Browse the repository at this point in the history
* jupyrdfGH-116: Add buffer to widget.
  • Loading branch information
zwelz3 authored Jun 25, 2021
1 parent fa57646 commit bcfb88c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ doit all
anaconda-project run --env-spec build twine upload dist/ipyradiant*
```

> Note: If you have issues with twine (on windows), you may need to manually activate the build environment (`conda activate envs/build`) and run the twine commands.
> Note: If you have issues with twine (on windows), you may need to manually activate
> the build environment (`conda activate envs/build`) and run the twine commands.
- Check hashes on `pypi` after the upload completes
- Complete `conda-forge` tasks
Expand All @@ -100,7 +101,8 @@ doit all
- update `recipe/meta.yml` (version and sha for tar)
- submit PR to conda-forge feedstock (go through checklist). DO NOT PUSH DIRECTLY
- wait for CI, merge (requires write permissions) and wait for CI again
- once CI is done, the new package version should be visible on [conda-forge][conda-forge-ipyradiant]
- once CI is done, the new package version should be visible on
[conda-forge][conda-forge-ipyradiant]

[radiance-si-units]: https://en.wikipedia.org/wiki/Radiance#SI_radiometry_units
[conda-forge-ipyradiant]: https://anaconda.org/conda-forge/ipyradiant
Expand Down
6 changes: 5 additions & 1 deletion src/ipyradiant/visualization/cytoscape/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Copyright (c) 2021 ipyradiant contributors.
# Distributed under the terms of the Modified BSD License.

__all__ = ["CytoscapeViewer", "CytoscapeVisualizer", "InteractiveViewer"]
__all__ = [
"CytoscapeViewer",
"CytoscapeVisualizer",
"InteractiveViewer",
]

from .app import CytoscapeVisualizer
from .interactive import InteractiveViewer
Expand Down
4 changes: 2 additions & 2 deletions src/ipyradiant/visualization/cytoscape/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def update_rdf_graph(self, change):
# set options, value, and row counts
self.type_selector.options = select_options
self.type_selector.value = tuple(uri for _, uri in select_options)
self.type_selector.rows = len(select_options)
self.type_selector.rows = len(select_options) + 1

# build options for the predicate MultiSelect
select_options = []
Expand All @@ -406,7 +406,7 @@ def update_rdf_graph(self, change):
# set options, value, and row counts
self.predicate_selector.options = select_options
self.predicate_selector.value = tuple(uri for _, uri in select_options)
self.predicate_selector.rows = len(select_options)
self.predicate_selector.rows = len(select_options) + 1

color_classes = self.assign_css_classes()
self.apply_node_styling(change=None)
Expand Down

0 comments on commit bcfb88c

Please sign in to comment.