Closed eglassman closed 7 years ago
@Steven-Hewitt, in the code you committed in order to close #4, there was an example of a label for the data load callback. That's where a lot of the heart of d3 code lives. I would prioritize getting program synthesis to learn that label, first. If you then create this JSON for all the 50 files and the data-load-callback label, we can use that to programmatically insert that class in spans around the callbacks in our index50.html file (therefore addressing and closing #2).
I just committed my updates to the VS Solution file so it writes out of a csv-like thing to the console, which I'm going to use as a starting point for more rendering explorations.
Okay, this is what I'll do next. Stealing this back from you. ;)
Wrote out data in json-like format to console. Still needs to be saved as json file by hand, but I think that shouldn't be automated yet.
Unfortunately, it's not well-formed JSON. It doesn't have \n where it should:
Trying to write out the json now using http://stackoverflow.com/questions/16921652/how-to-write-a-json-file-in-c
@Steven-Hewitt I got stuck trying to write out well-formed JSON files with multiple line values. It's not completely necessary, though. I'll continue without it for now. If you can figure out how to do it, can you show me how?
Sounds good, I'll try to do that before I go to sleep tonight. If not, first thing tomorrow.
While this wasn't necessary to complete my simplest prototype tonight, it will be really helpful to have this, for debugging and additional prototyping purposes. Thanks in advance, @Steven-Hewitt!
I updated the title of this issue to reflect the fact that the critical missing pieces are
I think I'm done, but my tests are getting caught up on a thing that didn't seem to be an issue when you were running the code during our meeting where LearnHTMLlang
is failing to actually learn.
Don't feel comfortable uploading/closing issue until I have that worked out, but hopefully that'll be soon.
@Steven-Hewitt Weird, okay! Want to swing by my desk and we can look at it together? Andrew and Gustavo are also comfortable with C# --> JSON.
@eglassman Sure! Since I'm working from my desktop, I'll get the current updates on my laptop so that I can check in tomorrow (or, failing that, set up VNC so I can remotely connect).
@Steven-Hewitt I'm here in the lab until 5. Want to swing by? In the meantime, I've sent a message about this to Andrew and Gustavo.
@Steven-Hewitt Gustavo's response:
var submissionsToJson = JsonConvert.SerializeObject(submissions); File.WriteAllText("submissionsResults.json", submissionsToJson);
In the meantime, I'm printing to the console stuff that I can copy and paste into a file for prototyping purposes.
Done.
Label examples: Header (optional parent nodes) Body (optional parent nodes) Aux js library load d3 library load style d3 data load callback d3 load argument