Skip to content

Conversation

@asmirnov69
Copy link
Contributor

@asmirnov69 asmirnov69 commented Mar 2, 2023

This PR is to introduce working notebook support of pyjviz diagrams (examples/notebooks dir). Script mode also works.
The PR is big - a lot of new code files were added to introduce twin diagram objects hierarchy used to create RDF log of method chain execution.
Visualization part of code is based on SVG generated by graphviz. The solution was found how to provide important feature: dataframe nodes can have either .head()-like table or plot visible in node click popup window (this works for both nb and script output version).

I verified that this sequence of install commads in fresh conda env produce right set of packages:

conda install -c conda-forge pyjanitor
conda install -c conda-forge ipython
git clone -b rdfio-intro https://github.com/pyjanitor-devs/pyjviz.git
cd pyjviz
pip install .
conda install -c conda-forge jupyterlab
conda update --all  # somehow fixes the problems when starting jupyter lab.

Examples worth looking at are:

pyjviz/example/notebooks/why-janitor.py
pyjviz/example/scripts

Scripts will create directory ~/.pyjviz and dump output there. one can open .svg result files via browser.
Notebook works without any additional details, don't forget to try to click on DataFrame rectangles.

…s/index.md seems to be the place to put all README notes - suspect index.md copied to README.md via automation set by Eric
…df protocol also introduced - popups disabled
…s up, have content of docstrings found in examples/scripts .py files, __init__.py are required by mkdocs to have it working
…ied to place js code into svg node instead of disabled hlinks - thanks for chatgpt it was quick. test version is now working, need to put real content into popups
@netlify
Copy link

netlify bot commented Mar 2, 2023

Deploy Preview for pyjviz ready!

Name Link
🔨 Latest commit 0742737
🔍 Latest deploy log https://app.netlify.com/sites/pyjviz/deploys/64005314a530490008c8bd10
😎 Deploy Preview https://deploy-preview-2--pyjviz.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@asmirnov69 asmirnov69 requested a review from ericmjl March 2, 2023 01:37
@asmirnov69 asmirnov69 merged commit 1ef7b08 into main Mar 6, 2023
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