You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was investigating this issue a bit an realised the following.
in the first case, i.e. the graph in a jupyter notebook visualised with voila the colors of the nodes are taken by the browser:
if claim['category'] == 'method':
g.setNode(claim['id'], style="fill: #f77")
if claim['category'] == 'apparatus':
g.setNode(claim['id'], style="fill: #7f7")
if claim['category'] == 'use':
g.setNode(claim['id'], style="fill: #7f7")
so when using inspector in google chrome the colors #f77, #7f7, #7f7 are to be seen.
This is not the case when importing a .py file containing the ipydagred3 into another jupyter. colors don't appear and indeed when inspecting the node elements the colors are all the same for all the nodes.
I have a function like this:
def graph_of_claims(claims): ... ... return graphwidget
when this function is run in a jupyter notebook with voila the nodes appear with the corresponding color
but:
when I import that function into another jupyter notebook
from pyutils import graph_of_claims as mygraph
and run voila the graph is shown without colours.
some idea?
The text was updated successfully, but these errors were encountered: