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.

Add option to run cell in terminal

See original GitHub issue

Creating a line with #%% Defines a “cell” that can currently be run through Jupyter. I have tried to use Jupyter for about a week for interactive development, but for various reasons, it isn’t a good fit for me (tl;dr: too much ux overhead).

However, the ability to mark something as a cell and have a quick way to run that block without explicitly selecting the block first is great.

So I propose to add a command to Run Current #%%-cell in Terminal (i.e. not in Jupyter).

Similar functionality that already exists: Run Cell in Jupyter -> opens a new tab with Jupyter with all its features and clutter. Run Python File in Terminal Run Selection/Line in Python Terminal

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
luabudcommented, Mar 24, 2021

Thanks for the suggestion! We talked about it with the team offline and we have unfortunately decided we will not be moving forward with this idea. We think there isn’t an enough widespread need for this to warrant the maintenance cost for the feature.

0reactions
Diogo-Rossicommented, Jun 19, 2021

When not using Jupyter, the “Run Cell | Run Above | Debug Cell” is less than useful. With many small cells, this ends up being a lot of clutter.

@adamal, there is a setting "jupyter.enableCellCodeLens" that can be set to false to remove Cell’s options in the editor

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with Jupyter code cells in the Python Interactive window
To select an environment, use the Python: Select Interpreter command from the Command Palette (Ctrl+Shift+P). Once the appropriate environment is activated, you ...
Read more >
Python in VS Code: Can I run cell in the integrated terminal?
If you wish to execute the cell contents in the CURRENTLY ACTIVE terminal, you need to tweak AdamAL's solution: Install multi-command.
Read more >
Running python code using 'Run selection in Python terminal'
Want to see what some Python code will do when run ? Use the ' Run selection in Python terminal ' command from...
Read more >
PyCharm - Run and debug Jupyter notebook code cells
Ctrl+Enter : Runs the current cell. · Shift+Enter : Runs the current cell and select the cell below it.
Read more >
How To Use Jupyter Notebooks - Codecademy
Cells are how notebooks are structured and are the areas where you write your code. To run a piece of code, click on...
Read more >

github_iconTop Related Medium Post

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