前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Python:Jupyter QtConsole简介

Python:Jupyter QtConsole简介

作者头像
Freedom123
发布2024-03-29 14:30:04
1170
发布2024-03-29 14:30:04
举报
文章被收录于专栏:DevOpsDevOps

Introduction

A rich Qt-based console for working with Jupyter kernels, supporting rich media output, session export, and more.

The Qtconsole is a very lightweight application that largely feels like a terminal, but provides a number of enhancements only possible in a GUI, such as inline figures, proper multiline editing with syntax highlighting, graphical calltips, and more.

Install Qtconsole

The Qtconsole requires Python bindings for Qt, such as PyQt5, PyQt4, or PySide.

Although pip and conda may be used to install the Qtconsole, conda is simpler to use since it automatically installs PyQt5. Alternatively, the Qtconsole installation with pip needs additional steps since pip doesn’t install the Qt requirement.

Install using conda

To install:

代码语言:javascript
复制
conda install qtconsole

Note: If the Qtconsole is installed using conda, it will automatically install the Qt requirement as well.

Install using pip

To install:

代码语言:javascript
复制
pip install qtconsole

Note: Make sure that Qt is installed. Unfortunately, Qt is not installed when using pip. The next section gives instructions on doing it.

Installing Qt (if needed)

You can install PyQt5 with pip using the following command:

代码语言:javascript
复制
pip install pyqt5

or with a system package manager on Linux. For Windows, PyQt binary packages may be used. Note: Additional information about using a system package manager may be found in the qtconsole documentation. More installation instructions for PyQt can be found in the PyQt5 documentation and PyQt4 documentation Source packages for Windows/Linux/MacOS can be found here: PyQt5 and PyQt4.

Usage

To run the Qtconsole:

代码语言:javascript
复制
jupyter qtconsole

Resources

https://github.com/jupyter/qtconsole

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2024-03-28,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Introduction
  • Install Qtconsole
  • Install using conda
  • Install using pip
  • Installing Qt (if needed)
  • Usage
  • Resources
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档