跳转到主要内容

在终端中渲染Jupyter Notebook

项目描述

jut - JUpyter notebook终端查看器.

命令行工具,用于在终端中查看IPython/Jupyter笔记本。

安装

pip安装jut

用法

$jut --help
Usage: cli.py [OPTIONS] PATH

Options:
  -he, --head INTEGER RANGE  Display first n cells. Default is 10
  -t, --tail INTEGER RANGE   Display last n cells
  -p, --single-page          Should the result be in a single page?
  -f, --full-display         Should all the contents in the file displayed?
  --force-colors             Force colored output even if stdout is not a
                             terminal

  -s, --start INTEGER RANGE  Display the cells starting from the cell number
  -e, --end INTEGER RANGE    Display the cells till the cell number
  --exclude-output-cells     Exclude the notebook output cells from the output
  --no-cell-border           Don't display the result in a cell with border
  --help                     Show this message and exit.

ASCIICinema演示(第一版)

asciicast

注意:命令行参数可能不同,使用jut --help获取最新的命令行选项。

显示前五个单元格

jut-head-example

显示最后五个单元格

jut-tail-example

下载文件并显示前五个单元格

jut-download-url

用法

$jut debug/file.ipynb
...
$jut https://raw.githubusercontent.com/fastai/fastbook/master/06_multicat.ipynb --tail 10
...

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分布

jut-0.0.24.tar.gz (5.6 kB 查看哈希值)

上传时间:

构建分布

jut-0.0.24-py3-none-any.whl (5.9 kB 查看哈希值)

上传时间: Python 3

支持者