Skip to content

REPL multiline display #1533

@mflova

Description

@mflova

Debug adapter definition and debug configuration

I am using the most up to date version of nvim-dap (see the end of this issue for more info) but it seems the REPL cannot represent multi-line based objects (numpy arrays, pandas dataframes...):

Image

There is a very similar to this issue: #169

However, I would say the root cause to be different. The problem in that issue was the replacement of the \n char via text = text:gsub('\n', ' ') -- Might make sense to change this and preserve newlines? in nvim-dap/lua/dap/ui.lua. But this issue was fixed long time ago as this sustitution is not taking place. That's why I create this other issue.

I am using the most up to date commits from this tool:

Image

Debug adapter version

No response

Steps to Reproduce

  1. Create any numpy array
  2. Visualize it in REPL

Expected Result

I would expect a numpy array rendered in multiple lines.

Actual Result

I see a numpy array unwrapped along the same line

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions