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.

User snippets in interactive window input

See original GitHub issue

Hope I didn’t overlook any duplicates.

Would be cool if the interactive window input suggested user snippet completions.

{
  "import numpy": {
    "prefix": "inp",
    "body": [
      "import numpy as np"
    ],
    "description": "import numpy"
  }
}

Expected Behavior

Typing inp, I’d expect the first suggestion to be import numpy. In a Python file it is. In the IW input, I get other stuff.

no-completions

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
joyceerhlcommented, Jul 21, 2021

This is resolved in the preview interactive window, which features improved VS Code workbench integration and is currently the default in VS Code Insiders. Please let us know if it works for you and give us any feedback you have about the new experience 😊 If you find any bugs or have concerns, please file a new issue at https://github.com/microsoft/vscode-jupyter/issues so we can fix it. Thank you!

recording (3)

1reaction
DonJayamannecommented, Mar 4, 2021

Unfortunately, no

Read more comments on GitHub >

github_iconTop Results From Across the Web

Snippets in Visual Studio Code
Snippets in Visual Studio Code. Code snippets are templates that make it easier to enter repeating code patterns, such as loops or conditional-statements....
Read more >
Python interactive window (REPL) - Visual Studio
The Interactive window executes each line as you enter it, which includes options such as importing modules, defining variables.
Read more >
Visual Studio Code Snippets – the Definitive VS Code Snippet ...
To create the snippets file, run the 'Preferences: Configure User Snippets' command, which opens a quickpick dialog as below. Your selection ...
Read more >
How do I find/excute Python Interactive Mode in Visual Studio ...
When editing Python code, select something and press Shift + Enter . This will open the interactive window and run your selection as...
Read more >
Custom polymorphic code snippets in VS Code
File > Preferences > User Snippets (Windows) ... a ton of typing but we can do even more with VS Code snippets by...
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