Skip to content

Python Interactive Window on VSCode truncates outputs showing only the last 1950 characters #2969

@adisoadi

Description

@adisoadi

Steps to cause the bug to occur

  1. Open Python Interactive Window
  2. In the Python Interactive Window input box create a variable and store a string longer than 1950 characters in that variable and press Enter to execute.
  3. Write the variable name again and press Enter.

Actual behavior

The output of the string includes only the last 1950 characters of the string when the variable is called directly without using print(). To get the expected behavior, the value of the setting Python › Data Science: Text Output Limit should be set to 0. By default, the value is 2000.

Screenshot 2019-10-02 at 16 04 49

Expected behavior

The output of the string should be complete by default.

Jupyter and/or Python environment

  • Jupyter server running: Local
  • Extension version: 2019.9.34911
  • VS Code version: 1.38.1
  • Setting python.jediEnabled: true
  • Python and/or Anaconda version: 3.7.4
  • OS: Mac
  • Virtual environment: N/A

Developer Tools Console Output

[Extension Host] Info Python Extension: 2019-10-02 16:01:38: Submitting code for dc25ea27-962e-474f-bba1-11c3fd43f7a9
console.ts:137 [Extension Host] Info Python Extension: 2019-10-02 16:01:38: Waiting for jupyter server and web panel ...
2console.ts:137 [Extension Host] Info Python Extension: 2019-10-02 16:01:38: Wait for sys info for dc25ea27-962e-474f-bba1-11c3fd43f7a9 0
console.ts:137 [Extension Host] Info Python Extension: 2019-10-02 16:01:38: Adding hash for 2 = 68dc0849bd2e with 32 lines
console.ts:137 [Extension Host] Info Python Extension: 2019-10-02 16:01:44: Finished execution for bfb72fab-7375-4db4-8e76-91316a906277

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions