🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ipycov

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipycov

Coverage access via IPython

0.0.1
PyPI
Maintainers
1

Build Status

IPython Coverage

Introduces %coverage and %%coverage magics to allow running of coverage from a Jupyter Notebook.

It currently presents the coverage HTML report as an IFrame.

Installation

pip install ipycoverage

Usage

Load the extension

%load_ext ipycov

Use the magic

In a cell, you can run the cell magic like such:

%%coverage
from your_module import your_function  # or anything else you want to import

your_function()

twine register dist/pad-on-left-1.0.0.tar.gz -r testpypi

Or simply run the line magic:

%coverage function_to_call()

Important Note

This is not a fully developed magic, and it is not stable yet.

It has only been tested against:

  • coverage==4.5.2
  • IPython==7.0.1.
  • JupyterLab==0.35.1

Missing Features / Future Work

  • Improve naming and instructions
  • Add more options; potentially dynamically load them from coverage
  • Add tests
  • Add examples
  • Add CI/CD
  • Submit to PyPI and Conda

Keywords

testing coverage ipython

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts