Skip to content

Use Smart Send with Jupyter Interactive Window #25993

Description

@abielr

I would like to request that an option be added that would allow Smart Send to send selected code to the Juputer Interactive Window instead of the native Python REPL. The Jupyter add-in already allows a user to send a selection or the current line to the Interactive Window, but there is no Smart Send capability in that add-in.

As an example of implementation, if inside of sec/client/repl/replCommands.ts:registerReplCommands() the line

await nativeRepl.sendToNativeRepl(normalizedCode);

were replaced with

await vscode.commands.executeCommand('jupyter.execSelectionInteractive', normalizedCode);

then the function would have the desired behavior. Of course this would need to the wrapped inside of some setting that allows the user to toggle between whether they want to use the Interactive Window or the Python REPL.

Activity

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

Metadata

Metadata

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions