No project description provided
Project description
# pprofile_ext
IPython extension for the pprofile line-profiler. The extension allows a user to mark a line or cell
of an IPython notebook and run the [pprofile](https://github.com/vpelletier/pprofile) performance profiler
on the marked section of code. The result of the profile run will be written to HTML and can be viewed in
any browser. If the extension is used from within an IPython notebook then the results are displayed inline
in the notebook.
## Installation
The `pprofile_ext` ipython extension canbe installed using pip:
```bash
pip install pprofile_ext
```
## Usage
To load the extension from the IPython REPL or in a notebook cell type and execute
```python
%load_ext pprofile_ext
```
To view the pprofile_ext help type `%pprofile?`, which will display
<pre>
%pprofile [-n NAME] [-w WIDTH] [-h HEIGHT] [code [code ...]]
PProfile IPython extension
positional arguments:
code
optional arguments:
-n NAME, --name NAME Name of the directory relative to the current notebook
in which to store the profile output and the html
version of the profile output; If the directory does
not exist it will be created. If the directory does
exist a new directory will be created that has a
running integer suffix _x. The default name is
pprofile_output.
-w WIDTH, --width WIDTH
Width in pixels of the iframe displaying the pprofile
output; default 980 (used only in cell mode)
-h HEIGHT, --height HEIGHT
Height in pixels of the iframe displaying the pprofile
output; default 400 (used only in cell mode)
</pre>
IPython extension for the pprofile line-profiler. The extension allows a user to mark a line or cell
of an IPython notebook and run the [pprofile](https://github.com/vpelletier/pprofile) performance profiler
on the marked section of code. The result of the profile run will be written to HTML and can be viewed in
any browser. If the extension is used from within an IPython notebook then the results are displayed inline
in the notebook.
## Installation
The `pprofile_ext` ipython extension canbe installed using pip:
```bash
pip install pprofile_ext
```
## Usage
To load the extension from the IPython REPL or in a notebook cell type and execute
```python
%load_ext pprofile_ext
```
To view the pprofile_ext help type `%pprofile?`, which will display
<pre>
%pprofile [-n NAME] [-w WIDTH] [-h HEIGHT] [code [code ...]]
PProfile IPython extension
positional arguments:
code
optional arguments:
-n NAME, --name NAME Name of the directory relative to the current notebook
in which to store the profile output and the html
version of the profile output; If the directory does
not exist it will be created. If the directory does
exist a new directory will be created that has a
running integer suffix _x. The default name is
pprofile_output.
-w WIDTH, --width WIDTH
Width in pixels of the iframe displaying the pprofile
output; default 980 (used only in cell mode)
-h HEIGHT, --height HEIGHT
Height in pixels of the iframe displaying the pprofile
output; default 400 (used only in cell mode)
</pre>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pprofile_ext-1.0.2.tar.gz
(13.2 kB
view hashes)
Built Distribution
Close
Hashes for pprofile_ext-1.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80dccb2bddac8d02c1d5e322fd970c5f5a40569407bd9e05c78218f3caa8f7c3 |
|
MD5 | 308d5deb7ebfddc28d81871d4e80ffa2 |
|
BLAKE2b-256 | c69affec6fb7146d5d31eb3c2d44a6eaccf7007d48458987c6b6bc0302d0f7ab |