-
Notifications
You must be signed in to change notification settings - Fork 5
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
Layout options widgets #24
Conversation
"\n", | ||
"elk_app.transformer.css_classes = {\n", | ||
" \"n1\": {\n", | ||
" ElkNode: set([\"example-custom-class\"]),\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, using classes as keys kinds freaks me out...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created new issue to track #31.
"- [🦌 ELK App 🚀](./03_App.ipynb)\n", | ||
"- [🦌 Interactive ELK App 🕹️](./04_Interactive.ipynb)\n", | ||
"- [🦌 Node Label Placement 🏷️](./100_node_label_placement.ipynb)\n", | ||
"- [🦌 Text Sizer 📏](./101_text_sizer.ipynb)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re #28: we could have a table of contents that we just import instead of keeping this up-to-date
inline = T.Bool(default_value=False) | ||
|
||
def _ui(self) -> List[W.Widget]: | ||
cb = W.Checkbox(description="Inline Edge Labels") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we hoist the description
to a static on the class... or standardize on
class FooBarBaz(LayoutOptionWidget):
""" Foo Bar Baz
first you foo, then you bar in order to baz
"""
def _ui(self) -> List[W.Widget]:
cb = W.Checkbox(description=self.__doc__.splitlines()[0].trim())
Going to try out merging this into #27 and will do interactive review from there... |
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"l = ipyelk.nx.XELKTypedLayout()" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lowercase L is a singularly bad variable name, along with O
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed this and added some other minor wording cleanup to that example notebook. I created a followon issue for more examples and the importnb PR should be there.
From a code perspective, it looks fine, if somewhat hard to grasp... however, there's almost no way I'd be able to look at the docs and actually make one of these custom thingers work. I think refining a few, targeted examples, for e.g. the edge collapsing, would be helpful... linking to the source is fine. |
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# 🦌 ELK Transformer 🤖\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs more descriptive title, and less copy-pasta...
#19
XELK
Transformer networkx nodes.XELK
Transformer networkx nodes.