question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Be able to provide string argument to python.datascience.execSelectionInteractive for extensibility.

See original GitHub issue

Feature: Notebook Editor, Interactive Window, Python Editor cells

python.datascience.execSelectionInteractive executes the current selection in the Interactive Window. How about a command that accepts a string argument and executes that in the Interactive Window? Other extensions could then call this to provide more complicated versions of python.datascience.execSelectionInteractive, such as executing and advancing to the next line (#13495) or auto-detecting and executing whole code blocks (#4978).

It’s straightforward to send specified text to Python or IPython running in the terminal, but as far as I know there’s currently no way to send specified text to the Interactive Window. (Apologies if I’ve missed an existing command that allows this.)

Thank you.

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Oct 1, 2020

Thanks for the suggestion, we will discuss this in our triage meeting.

0reactions
andycraigcommented, Mar 24, 2021

Feature added in #5053.

Read more comments on GitHub >

github_iconTop Results From Across the Web

argparse — Parser for command-line options, arguments and ...
') The ArgumentParser object will hold all the information necessary to parse the command line into Python data types.
Read more >
Python for Data Science - Functions and String Formatting
Python for Data Science - Functions and String Formatting. 2,857 views2.8K views. Streamed live on Jul 28, 2021.
Read more >
Top 10 Python Extensions for Visual Studio Code
Python Extended is a vscode snippet that makes it easy to write Python code by providing completion options along with all arguments. Usage...
Read more >
3 Ways to Handle Args in Python. A Straight to the Point Guide
Instead of providing a number of arguments split by space, you provide a single “big” argument. This one big argument is a stringified...
Read more >
Data Science Toolbox (1) - Vishal Kumar
We will now update shout() by adding a parameter so that it can accept and process any string argument passed to it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found