Code Monkey home page Code Monkey logo

scrapeable's Introduction

scrapeable's People

Contributors

seanbirchall avatar

Stargazers

Leo Lee avatar  avatar timelyportfolio avatar

Watchers

 avatar

Forkers

anoafl

scrapeable's Issues

shinylive problem

See ramnathv/htmlwidgets#487 for reference and background. @jcheng5 @seanbirchall

Debugging shinylive

Since MessageChannel replaces traditional Shiny websocket (easily tracked in browser debugging tools) in shinylive/webR, debugging can be a little more difficult. I discovered

  1. options(shiny.trace = TRUE) in the app will log to browser console which is helpful
  2. manually hacking shinylive-inject-socket.txt around line[https://github.com/posit-dev/shinylive/blob/main/src/assets/shinylive-inject-socket.txt#L62] by adding if(event.value && event.value.data) {console.log(JSON.parse(event.value.data))} after shinylive::export() in shinylive-sw.js provides the full stream

Potential Partial Solution (at least locally for me in shinylive)

While this helps in my local testing, I want to stress that the issue still eventually will appear if viewer is not cleared after first render. Before I was not able to get any rendered df_viewer, but it sounds like in the original issue that df_viewer would appear.

Moving lines to the end of mod_df_viewer.R seems to partially resolve what appears to be an asynchrony issue that happens in the shinylive context. Oddly, when I added a line before the req (even a commented one) without changing the order of the code, then the problem also went away at least locally in a shinylive context.

Sean, if working correctly, you should be able to remove the manually added dependencies in lines.

Problem

The shiny::req(ide$environment_selected, input$index, input$rows, input$columns) in line leads to a null data message sent. Then htmlwidgets line fails since data.deps does not exist.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.