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

feat: creating Pyvis network graph #2418

Merged

Conversation

duxans
Copy link
Contributor

@duxans duxans commented Nov 28, 2023

Fixes

This PR resolves #2390

What does this PR do?

(One iteration of the network visualization with data extracted from templates.json file.
Notes:

  • Edges are undirected in this first version.
  • The so-called "physics" for the mechanic model is set to force_atlas_2based. I think is the best suited gravity modelation for this network otherwise barnes_Hut is also a good option (the one used in the GOT example), but a bit messy perhaps.
  • I found mostly Tool <-> Template edges
  • Few (but some) situations of the kind Tool <-> Template <-> Tool
  • A bit unbalanced node dimensions. For instance, OpenAi is huge compared to the rest and I had to fix it in a corner of the canvas due to gravity issues.
  • I fixed Naas node in the center of the canvas, that is, [x = 0, y = 0]
  • I realized some nodes may have the wrong image (Naas logo). Maybe we can change this later on.

Screenshots

Provide supporting docs, limitations if any, video of the template, or anything that you want to share to support your PR

@FlorentLvr
Copy link
Contributor

@duxans, thank you for your contribution! 🙏
Just made some minor changes as you edited the initial template instead of creating a new one so I added it again.
Also I connected the data directly to the json stored in github.
Thanks again 👍

@jravenel 👀

@FlorentLvr FlorentLvr merged commit 0a152fd into master Dec 1, 2023
5 checks passed
@FlorentLvr FlorentLvr deleted the 2390-pyvis-visualize-the-awesome-notebooks-network branch December 1, 2023 10:52
Copy link

github-actions bot commented Dec 1, 2023

The template is now available on the master branch on this link:
https://github.com/jupyter-naas/awesome-notebooks/blob/master/Pyvis/Pyvis_Visualize_awesome_notebooks_network.ipynb

Copy link

github-actions bot commented Dec 1, 2023

Thank you for your contribution @duxans, your PR has been merged into the master branch of awesome-notebook.
Here is the contribution certificate you can share on social media so everybody knows how awesome you are 🤙🌎.
Spread the #opensource love 💚

duxans.png

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.

Pyvis - Visualize the awesome-notebooks network
2 participants