Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ipython-contrib/ipython-markdown-inspector
https://github.com/ipython-contrib/ipython-markdown-inspector
ipython ipython-extension jupyterlab jupyterlab-extension notebook
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ipython-contrib/ipython-markdown-inspector
- Owner: ipython-contrib
- License: bsd-3-clause
- Created: 2024-02-16T14:18:19.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-27T10:31:48.000Z (8 months ago)
- Last Synced: 2024-09-29T18:23:46.331Z (about 1 month ago)
- Topics: ipython, ipython-extension, jupyterlab, jupyterlab-extension, notebook
- Language: Python
- Homepage:
- Size: 99.6 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ipython-markdown-inspector
[![tests](https://github.com/ipython-contrib/ipython-markdown-inspector/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/ipython-contrib/ipython-markdown-inspector/actions/workflows/tests.yml)
![CodeQL](https://github.com/ipython-contrib/ipython-markdown-inspector/workflows/CodeQL/badge.svg)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ipython-contrib/ipython-markdown-inspector/main?urlpath=lab)
[![pypi-version](https://img.shields.io/pypi/v/ipython-markdown-inspector.svg)](https://python.org/pypi/ipython-markdown-inspector)IPython extension providing inspection results as Markdown, enabling better integration with Jupyter Notebook and JupyterLab.
Depends on [`docstring-to-markdown`](https://github.com/python-lsp/docstring-to-markdown).![](https://raw.githubusercontent.com/ipython-contrib/ipython-markdown-inspector/main/docs/demo.png)
## Installation
Requires `IPython` 8.22 or newer (which requires Python 3.10 or newer).
```bash
pip install ipython-markdown-inspector
```## Usage
To load an extension while IPython is running, use the `%load_ext` magic:
```ipython
%load_ext ipython_markdown_inspector
```To load it each time IPython starts, list it in your [configuration file](https://ipython.readthedocs.io/en/stable/config/intro.html):
```python
c.InteractiveShellApp.extensions = [
'ipython_markdown_inspector'
]
```After enabling the extension, both the contents of "Contextual Help" panel,
and results of info requests such as `%run?` or `df?` will provide the output in Markdown format.