Skip to content

How to add display name to node id? #992

Answered by TheFern2
TheFern2 asked this question in Q&A
Discussion options

You must be logged in to vote

For nodes to include display name you can do it with an f string as follows.

n_str=f"ns={idx};s=MyVariable"

myvar = await myobj.add_variable(n_str, "MyVariable" , 0.0)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@TheFern2
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by TheFern2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants