DyfanJones / aws-step-functions-data-science-sdk-r

Step Functions Data Science SDK for building machine learning (ML) workflows and pipelines on AWS
https://dyfanjones.github.io/aws-step-functions-data-science-sdk-r
Other
1 stars 0 forks source link

Render graphs in RStudio #1

Open DyfanJones opened 3 years ago

DyfanJones commented 3 years ago

Currently stepfunctions creates html script and then renders it in jupyter notebook using IRdisplay::display_html. For RStudio to render the html either: htmlwidget or rebuilding the flow using igraph.

DyfanJones commented 3 years ago

Current implementation using htmlwidget: https://github.com/DyfanJones/aws-step-functions-data-science-sdk-r/tree/htmlwidget . Current issue:

sfn.min.js:60 Uncaught TypeError: Cannot read property 'getBBox' of null
    at width (sfn.min.js:60)
    at t.value (sfn.min.js:60)
    at Object.renderValue (sfn_flow_graph.js:24)
    at Object.renderValue (htmlwidgets.js:886)
    at htmlwidgets.js:653
    at Array.forEach (<anonymous>)
    at forEach (htmlwidgets.js:55)
    at htmlwidgets.js:576
    at Array.forEach (<anonymous>)
    at forEach (htmlwidgets.js:55)

Reached out to htmlwidget developers for help: https://github.com/ramnathv/htmlwidgets/issues/411 next step is to reach out to the community in RStudio and slackoverflow.

DyfanJones commented 3 years ago

Raised a topic on RStudio community: https://community.rstudio.com/t/difficult-developing-javascript-graph-using-htmlwidgets/106238