Jupyter内核的shell。
项目描述
Xonsh为Jupyter Notebook和Lab提供了一个内核,这样您可以在不使用任何额外魔法的情况下在notebook单元格中执行xonsh命令。
如果您喜欢这个想法,请在repo上点击⭐,并 tweet。
安装
要安装,请使用 xpip
xpip install xontrib-jupyter-shell
# or: xpip install -U git+https://github.com/xonsh/xontrib-jupyter
xontrib load jupyter
xonfig jupyter-kernel --help # Options for installing.
xonfig jupyter-kernel --user # Install kernel spec in user config directory.
检查安装
jupyter kernelspec list
# Available kernels:
# python3 /opt/homebrew/lib/python3.11/site-packages/ipykernel/resources
# xonsh /PATH_TO_ENV_PREFIX/share/jupyter/kernels/xonsh
xontrib load jupyter
xonfig jupyter-kernel
# Installing Jupyter kernel spec:
# root: None
# prefix: /PATH_TO_ENV_PREFIX/
# as user: False
xonfig info
#| jupyter | True
#| jupyter kernel | /PATH_TO_ENV_PREFIX/share/jupyter/kernels/xonsh
使用方法
Jupyter
只需运行 Jupyter Notebook或JupyterLab 并选择xonsh
jupyter notebook
jupyter lab
Euporie
Euporie 是一个基于终端的交互式计算环境。
euporie-notebook
# Change the kernel to xonsh
发布您的包
- 提高包的版本。
- 发布说明在每个PR后自动生成草稿版本。
- 创建GitHub发布。
- 使用
poetry publish --build
或twine
发布。
致谢
本包使用xontrib cookiecutter 模板创建。
项目详情
下载文件
下载适用于您的平台的文件。如果您不确定选择哪一个,请了解有关安装包的更多信息。
源分布
xontrib_jupyter_shell-0.1.0.tar.gz (10.6 kB 查看哈希值)
构建分布
关闭
xontrib_jupyter_shell-0.1.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 3ab936a13cc7da4a37a0826e231c3008e32b127f16886ea39c859ea141a3db00 |
|
MD5 | 2d106f76e4097999c6c872f5a1df316d |
|
BLAKE2b-256 | 4d8d0ec213f3ce2c35eda60632d385edbd532a1fdfbf64af92cb2eb056fd1cb2 |
关闭
xontrib_jupyter_shell-0.1.0-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 7eb0c59b4ee9b0d4b81b7fe61443d8c9d5f52b0d562e0c3bee3a8e855398dc42 |
|
MD5 | 94621210779afc1d13d104b5c5ce5dff |
|
BLAKE2b-256 | ad0badbc52852a492e6a5660595c5d1c47ad827185948009282a5a90afd9969f |