Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPython console when running Python code interactively with REPL #22155

Open
1 task done
yalap13 opened this issue Dec 17, 2024 · 1 comment
Open
1 task done

IPython console when running Python code interactively with REPL #22155

yalap13 opened this issue Dec 17, 2024 · 1 comment
Labels
admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue

Comments

@yalap13
Copy link

yalap13 commented Dec 17, 2024

Check for existing issues

  • Completed

Describe the feature

Similar to what exists in Spyder, it would be nice to have access to the IPython console when running python code interactively using REPL to allow running a file and running additional commands. There could be a setting to automatically open or not the console whenever a line or cell of python code is ran interactively.

Environment

Zed: v0.165.4 (Zed)
OS: Linux Wayland fedora 41
Memory: 15.3 GiB
Architecture: x86_64
GPU: Intel(R) Graphics (ADL GT2) || Intel open-source Mesa driver || Mesa 24.2.8

If applicable, add mockups / screenshots to help present your vision of the feature

Here is what the console looks like in Spyder :
spyder_screenshot

@yalap13 yalap13 added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Dec 17, 2024
@AlexisMrl
Copy link

I also believe it would be of great use. I often work in python and the ability to executes cells from a file is great but I often want to run one liners or arbitrary code that i do not want in my file. It's also nice to not have the cell outputs to be inside the editor area.

For what it's worth, it's currently kind of possible, by locating the kernel file with the magic %connect_info and then opening a jupyter qtconsole connected to the kernel with: jupyter qtconsole --existing /run/<...>/jupyter/kernel-zed-<num>.json.
I did not find a way to open an ipython console connected to a kernel (rather than a qtconsole, which is a standalone gui app).

Of course it should also work with other REPL too, that probably have different ways of connecting to existing kernels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

No branches or pull requests

2 participants