https://github.com/maartenbreddels/nbprofiler
Profiler extension for Jupyter notebook to profile the notebook server itself
https://github.com/maartenbreddels/nbprofiler
Last synced: 2 months ago
JSON representation
Profiler extension for Jupyter notebook to profile the notebook server itself
- Host: GitHub
- URL: https://github.com/maartenbreddels/nbprofiler
- Owner: maartenbreddels
- License: mit
- Created: 2017-05-11T19:40:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-26T10:21:52.000Z (almost 8 years ago)
- Last Synced: 2025-03-01T23:08:10.548Z (11 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nbprofiler
Profiler extension for Jupyter notebook to profile the notebook server itself
# Installation
```
$ git clone https://github.com/maartenbreddels/nbprofiler
$ cd nbprofiler
$ pip install -v -e .
```
# Usage
Start jupyter with the extension
```
$ jupyter-notebook --NotebookApp.server_extensions="['nbprofiler.ext']"
```
Start the profiler
```
$ curl localhost:8888/profiler/start
```
Stop the profiler
```
$ curl localhost:8888/profiler/stop
```
Report
```
$ curl localhost:8888/profiler/report
$ curl localhost:8888/profiler/report/cumtime
$ curl localhost:8888/profiler/report/tottime
```
# Documentation
[Use the source Luke!](https://github.com/maartenbreddels/nbprofiler/blob/master/nbprofiler/ext.py) and google cProfile.