Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix serializers for jupyterlab_widgets 3.0.6 #72

Merged
merged 10 commits into from
Mar 23, 2023

Conversation

nrbgt
Copy link
Contributor

@nrbgt nrbgt commented Mar 23, 2023

References

Code changes

  • backports substantive changes from Add DodoSource #68
    • observe happy CI
  • merge in dev
  • get jupyterlab-widgets<3.0.6, ipywidgets<8.0.5, ipykernel<6.22 in the test matrix
  • relock
  • start release of 0.3.1

User-facing changes

  • widgets should work with the latest ipywidgets and jupyterlab_widgets (and still work with older ones that pin)

Backwards-incompatible changes

  • n/a
    • or rather, we're hoping by running this against the previous locked versions

nrbgt and others added 3 commits March 20, 2023 13:35
## References

Resolves jupyrdf#60 by adding `curvature` and `line dashes` to `LinkShape`.

## Code changes

- [x] add `curvature` to `LinkShape`
- [x] add `line_dash` to `LinkShape`
  - [x] disable this behavior in 3D (it is not supported)
- [x] add coercion to `array` for `line_dash` data
- [x] update notebooks
  - [x] fixed a small issue with `node` selection in `Behaviors.ipynb`
- [x] update docs
- [x] add tests
  - [x] `str` inputs
  - [x] `int` inputs
  - [x] `float` inputs
  - [x] `Column` inputs
  - [x] `Nunjucks` inputs
  - [x] `LinkShape.color`
  - [x] `LinkShape.curvature`
  - [x] `LinkShape.line_dash`
  - [x] `LinkShape.width`
- [x] Interaction with selection
  - [x] need to make sure `LinkSelection` is included before `LinkShape` to show selection styling
  - [x] `LinkSelection` works but it is not tested in conjunction with `LinkShape`
  - [x] future work would be to figure out a way to make `default_curvature=None` to leave the link with its non-selected `curvature`

## User-facing changes

* Two new properties on `LinkShape`:
  * `LinkShape.curvature`:
    * 0.0 produces a straight link (default)
    * 1.0 circular link (i.e., `radius of curvature` = `0.5 * link length`)
    * negative numbers mirror the link
  * `LinkShape.line_dashes`:
    * Define the line dashes using an array of numbers, [reference](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash)

## Backwards-incompatible changes

> No backwards incompatible changes (**knock on wood**)
@github-actions
Copy link

Try it on ⬅️ ReadTheDocs or Binder ➡️

@sanbales
Copy link
Contributor

sanbales commented Mar 23, 2023

do we need to bump our .yml files to ipywidgets>=8.0.5?

@nrbgt
Copy link
Contributor Author

nrbgt commented Mar 23, 2023

to ipywidgets>=8.0.5?

#68 is demonstrating it against the newer version, wanted to get a clean run of this against the older versions to see if the relationship is more nuanced.

As mentioned, we could bring in more of dev (perhaps rebasing on #66). Not sure about #62, if there's still more work that needs doing.

@nrbgt nrbgt mentioned this pull request Mar 23, 2023
33 tasks
@nrbgt nrbgt marked this pull request as ready for review March 23, 2023 18:41
@nrbgt
Copy link
Contributor Author

nrbgt commented Mar 23, 2023

@sanbales this now includes #62. I'll probably ship it as0.3.1 if it Works The First Time, unless you are going to finish up any loose threads.

@sanbales
Copy link
Contributor

@sanbales this now includes #62. I'll probably ship it as0.3.1 if it Works The First Time, unless you are going to finish up any loose threads.

Propose we merge what was included in #62 as it seems to work. The only thing left re: to #62 (AFAIK) was preserving curvature by default on LinkSelection which is being tracked in #69.

@sanbales sanbales added this to the 0.3.1 milestone Mar 23, 2023
@nrbgt nrbgt merged commit 26d054e into jupyrdf:main Mar 23, 2023
@nrbgt nrbgt deleted the gh-71-hotfix-serializers branch March 23, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken vs jupyterlab_widgets 3.0.6
2 participants