在 Jupyter Lab 中,在 Python 控制台中执行编辑器代码 [英] In Jupyter Lab, execute editor code in Python console

查看:28
本文介绍了在 Jupyter Lab 中,在 Python 控制台中执行编辑器代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JupyterLab中,我想将代码从编辑器发送到Python控制台执行,最好使用键盘快捷键.文档似乎没有提供一种方法来做到这一点,但它是 IDE 的一个基本方面,我认为它可能是可能的.

In JupyterLab, I want to send code from the editor to the Python console for execution, preferably with a keyboard shortcut. The documentation doesn't seem to offer a way to do this, but it's such a fundamental aspect of an IDE that I imagine it's probably possible.

推荐答案

此功能现已发布.你需要做的就是

This feature has been released now. All you need to do is

  1. 右键单击脚本并创建控制台编辑器
  2. 复制整个代码并按shift + Enter

这篇关于在 Jupyter Lab 中,在 Python 控制台中执行编辑器代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆