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

Uses @powsybl/diagram-viewer to build jupyter notebook widgets (updated) #4

Merged
merged 19 commits into from
Apr 15, 2024

Conversation

CBiasuzzi
Copy link
Contributor

Please check if the PR fulfills these requirements

  • [x ] The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

Feature / experimentation

What is the new behavior (if this is a feature change)?

it provides:

  • an SVG viewer widget with pan and zoom, using @powsybl/diagram-viewer.
  • a network explorer widget that uses basic widgets and the SVG viewer from @powsybl/diagram-viewer, to search voltage levels in the network and display them.
  • an SLD viewer widget customizable with callbacks, using the SingleLineDiagramViewer from @powsybl/diagram-viewer.
  • an interactive network explorer widget, built using the SLD viewer.

Signed-off-by: Christian Biasuzzi <[email protected]>
…tes build dependencies to python 3.11, node 18 and jupyter-lab 3.6

Signed-off-by: Christian Biasuzzi <[email protected]>
…and the SVG viewer)

Signed-off-by: Christian Biasuzzi <[email protected]>
@CBiasuzzi
Copy link
Contributor Author

Note that this PR includes code from both PRs #2 and
#3

…t work with python 3.12 and jupyterlab >= 4

Signed-off-by: Christian Biasuzzi <[email protected]>
Signed-off-by: Christian Biasuzzi <[email protected]>
Signed-off-by: Christian Biasuzzi <[email protected]>
Signed-off-by: Christian Biasuzzi <[email protected]>
@flo-dup flo-dup self-requested a review February 22, 2024 12:13
Copy link
Contributor

@flo-dup flo-dup left a comment

Choose a reason for hiding this comment

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

nice job! just a few polishing comments

pypowsybl_jupyter/explorer.py Outdated Show resolved Hide resolved
pypowsybl_jupyter/explorer.py Outdated Show resolved Hide resolved
pypowsybl_jupyter/explorer.py Outdated Show resolved Hide resolved
pypowsybl_jupyter/explorer.py Outdated Show resolved Hide resolved
pypowsybl_jupyter/explorer.py Outdated Show resolved Hide resolved
examples/demo_sld.ipynb Outdated Show resolved Hide resolved
examples/demo_sld.ipynb Outdated Show resolved Hide resolved
pypowsybl_jupyter/explorersld.py Show resolved Hide resolved
examples/demo_sld_explorer.ipynb Outdated Show resolved Hide resolved
src/widget.ts Outdated Show resolved Hide resolved
Signed-off-by: Christian Biasuzzi <[email protected]>
Signed-off-by: Christian Biasuzzi <[email protected]>
Signed-off-by: Christian Biasuzzi <[email protected]>
…onsistently to the widgets

Signed-off-by: Christian Biasuzzi <[email protected]>
Signed-off-by: Christian Biasuzzi <[email protected]>
Signed-off-by: Christian Biasuzzi <[email protected]>
…widget), renames files and references, accordingly

Signed-off-by: Christian Biasuzzi <[email protected]>
@flo-dup flo-dup merged commit 7e924d4 into main Apr 15, 2024
3 checks passed
@flo-dup flo-dup deleted the sld_widget_new branch April 15, 2024 09:44
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.

2 participants