---
title: "flask-shell-ipython | pypx"
description: "Replace default `flask shell` command by similar command running IPython."
canonical_url: "https://pypx.app/packages/flask-shell-ipython"
meta:
  "og:description": "Replace default `flask shell` command by similar command running IPython."
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_flask-shell-ipython%2Cversion_0.5.3%2Csummary_~UmVwbGFjZSBkZWZhdWx0IGBmbGFzayBzaGVsbGAgY29tbWFuZCBieSBzaW1pbGFyIGNvbW1hbmQgcnVubmluZyBJUHl0aG9uLg%2Cp_Ii9wYWNrYWdlcy9mbGFzay1zaGVsbC1pcHl0aG9uIg%2Cs_o3RBBGSAYCvboBx7.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "flask-shell-ipython 0.5.3"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_flask-shell-ipython%2Cversion_0.5.3%2Csummary_~UmVwbGFjZSBkZWZhdWx0IGBmbGFzayBzaGVsbGAgY29tbWFuZCBieSBzaW1pbGFyIGNvbW1hbmQgcnVubmluZyBJUHl0aG9uLg%2Cp_Ii9wYWNrYWdlcy9mbGFzay1zaGVsbC1pcHl0aG9uIg%2Cs_o3RBBGSAYCvboBx7.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **flask-shell-ipython**

v0.5.3

Replace default \`flask shell\` command by similar command running IPython.

4 KB Python 3.8+ py3-none-any3 deps Possibly Unmaintained

[**Diff **](https://pypx.app/packages/flask-shell-ipython/diff)

`$ uv add flask-shell-ipython`

# Flask-Shell-IPython

`flask-shell-ipython` is a Python package that replaces the default `flask shell` command with a similar command that runs IPython. This provides an enhanced interactive Python shell with additional features like syntax highlighting, tab-completion, and more.

## Installation

To install `flask-shell-ipython`, simply run:

```
pip install flask-shell-ipython
```

## Usage

After installing `flask-shell-ipython`, the `flask shell` command will automatically use IPython instead of the default Python shell. There are no additional steps required.

```
flask shell
```

You can also pass any valid IPython arguments after the `flask shell` command:

```
flask shell --no-banner -i foo.py
```

## Configuration

You can configure IPython settings by adding an `IPYTHON_CONFIG` key to your Flask app's configuration. The value should be a dictionary containing the configuration options you'd like to set.

For example:

```
app.config['IPYTHON_CONFIG'] = {
    'InteractiveShell': {
        'colors': 'Linux',
        'confirm_exit': False,
    },
}
```

## Testing

To run tests for `flask-shell-ipython`, install the `pytest-forked` plugin, which enables running tests in isolated forked subprocesses to ensure running a clean IPython instance for each test case.

### Installing Dependencies

Install testing dependencies from `requirements-test.txt`:

```
pip install -r requirements-test.txt
```

### Running Tests

After installing the dependencies, run the test suite with the `--forked` option:

```
pytest --forked
```

Please, note that does pytest-forked does not work on Windows. To test flask-shell-ipython on Windows run each test manually.

## License

`flask-shell-ipython` is licensed under the MIT License. See the [LICENSE](https://pypx.app/LICENSE) file for more information.

## Contributing

If you'd like to contribute to the project, feel free to submit a pull request on the GitHub repository at http://github.com/ei-grad/flask-shell-ipython.

## **Details **

<dl>

<dt>Version</dt>
<dd>0.5.3</dd>

<dt>Python</dt>
<dd>&lt;4.0,&gt;=3.8</dd>

<dt>Maintainer</dt>
<dd>Andrew Grigorev &lt;andrew@ei-grad.ru&gt;</dd></dl>

## **Links**

- [Homepage](https://github.com/ei-grad/flask-shell-ipython)
- [View on PyPI](https://pypi.org/project/flask-shell-ipython/)

## **Maintainers **

- Andrew Grigorev · [andrew@ei-grad.ru](mailto:andrew@ei-grad.ru)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/flask-shell-ipython#webpage","@type":"WebPage","description":"Replace default `flask shell` command by similar command running IPython.","name":"flask-shell-ipython","url":"https://pypx.app/packages/flask-shell-ipython","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/flask-shell-ipython"]}]},{"@id":"https://pypx.app/packages/flask-shell-ipython#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"Replace default `flask shell` command by similar command running IPython.","name":"flask-shell-ipython","softwareVersion":"0.5.3"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
