-
Notifications
You must be signed in to change notification settings - Fork 13
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
How to format @begin text to render nicely in graphviz et.al.? #35
Comments
Edited title to better reflect my question |
How about a construct like so: @begin BlockName On Thu, Dec 17, 2015 at 8:11 AM, John S. Erickson, Ph.D. <
|
Another advantage of distinguishing the name of code block from its description is that the former can be referred to in prospective and retrospective provenance queries, whereas the latter might be a little unwieldy for this purpose. Currently any text between the first token following a
and (assuming this is the first annotation) you'll find this fact exported:
Note that no quotes are needed around the description. There are two catches, however. The first is that you can't see this description anywhere else! We could easily make the description for code blocks optionally appear within the corresponding boxes in the process and combined views, either with or without the block name (using a horizontal dividing line between the two if both are displayed). The second catch is that I think we need to deprecate this syntax in favor of the explicit
instead of requiring
which tends to overwhelm the script with YW annotations. John, Bertram, would you like to see the graph feature that allows one to display the description first, and support for an explicit |
I'm not sure I completely grok the question, BUT personally I would favor @desc. Note that for us the rendered graph is not the priority; really, we're interested in getting this info into a knowledge graph in a high-fidelity way. So whatever gets it into the model, so we can do a set of queries (for example) that let us produce RDF/linked data, is really our priority. |
I like the shorthand @in a b c The current implicit description is nice too, but I think the @Descr would Then I would have the description below the BlockName with a horizontal Then, as part of some config parameter, one could suppress the display of On Thu, Dec 17, 2015 at 3:57 PM, Timothy McPhillips <
|
The Note that quotes are not needed around the description text, and descriptions end at the end of the line or comment, whichever comes first. |
Process and combined graph views now can display code block descriptions of in the "program" nodes. The default value for the new |
Thanks! I've verified this with one of our scripts, and it works. John On Mon, Dec 21, 2015 at 2:53 AM, Timothy McPhillips <
John S. Erickson, Ph.D. |
As we come up to speed, we're trying to develop best practices for naming code blocks. We'd like them to be useful one-sentence descriptions of what's happening in a code block.
I've noticed that I can hack the .gv files to remove underscores from block names and to insert newlines, thus making the graph image look better (a key to this working is having the names surrounded by quotes in the gv file).
Any thoughts on how to do this directly from the YW comments?

The text was updated successfully, but these errors were encountered: