Skip to content

[BUG] Rich not playing nice when called from Reticulate #3416

Closed

Description

@jucor

Hi!

When called from the "Call-python-from-R" package Reticulate, Rich progress bars display incorrectly:
image

I've opened a bug report at Reticulate, with full description and minimum code example: rstudio/reticulate#1632

I realise this is likely some Reticulate wizardry (they remap stdout to R's console) that might be an issue, hence the bug report there, but I figured the kind developers will know much, much more about what to expect from a console, and how to get compatibility :)

Thanks a lot for any help!

Activity

  1. jucor commented on Jul 8, 2024

    @jucor
    Author

    I have found the root cause: Rstudio Console does not support cursor motion ANSI control sequences. I have opened a feature request upstream in rstudio/rstudio#14942 , as well as a bug report for an associated issue rstudio/rstudio#14941 .

    Is there a way to make Rich progressbars working even without cursor motion control sequences, even if in a much simpler capacity?

  2. willmcgugan commented on Aug 26, 2024

    @willmcgugan
    Member

    I don't think there is much that can be don't if Reticulate doesn't support escape sequences. They clearly support the escape sequences for color, so fingers crossed they will support more...

  3. github-actions commented on Aug 26, 2024

    @github-actions

    I hope we solved your problem.

    If you like using Rich, you might also enjoy Textual

  4. jucor commented on Aug 26, 2024

    @jucor
    Author

    They support a subset, e.g. backspace. What they don't support is other movement :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions