Code Monkey home page Code Monkey logo

Comments (5)

jlewi avatar jlewi commented on September 15, 2024 1

Thank you.
Regarding the docs; I never thought to look at
https://docs.runme.dev/configuration/cell-level#human-friendly-output.

I wound up here
https://marketplace.visualstudio.com/items?itemName=RandomFractalsInc.vscode-data-table
Which didn't mention it.

For the docs it might be helpful to have guide sections that show how to deal with rendering e.g. in this case
"How to work with JSON"
or perhaps even higher level
"How to work with BigQuery"

It looks like you have a bunch of how tos under the guide section but based on the titles none of them jump out to me as relevant to my problem in this case.

from runme.

sourishkrout avatar sourishkrout commented on September 15, 2024 1

Thanks for the feedback! We'll take the suggestions for the docs back to the team.

from runme.

jlewi avatar jlewi commented on September 15, 2024 1

I haven't been able to reproduce this consistently but in some cases it looks like I observed it being necessary to clear cell outputs and rerun the cell after disabling interactive mode. I think the steps were

  1. Create a cell with bq --format=json...
  2. Execute it
  3. Change cell to disable interactive
  4. Try to change cell; other formats don't show up
  5. Rerun cell
  6. Try to change presentation; other formats don't show up
  7. Clear cell outputs
  8. Rerun the cell
  9. Cell is now displayed correctly

A confounding factor is that it looks like the bq query will sometimes output job stats information to stderr if the job takes a long time. I think this prevents the output from being valid JSON. Redirecting to "2>/dev/null" seems to fix that problem.

from runme.

sourishkrout avatar sourishkrout commented on September 15, 2024

In the Configure foldout for the respective cell, please untick interactive as per https://docs.runme.dev/configuration/cell-level#human-friendly-output.

Interactive here means "attach a tty/terminal." Do you have any suggestions on how we can make this clearer in docs or otherwise?

Btw, you should be able to leave the mimeType empty since Runme has a pretty accurate auto-detection of JSON, CSV, etc now.

from runme.

sourishkrout avatar sourishkrout commented on September 15, 2024

I just checked how mime/media type detection works and realized we could technically offer a button (e.g., next to "Copy") to switch to non-interactive mode if we detect a non-plain-text media type 🤔. We could track this as a feature request. It likely would make it more "obvious" how to leverage other renderers. Thoughts, @jlewi?

from runme.

Related Issues (20)

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.