Socket
Socket
Sign inDemoInstall

ipycov

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ipycov

Coverage access via IPython


Maintainers
1

Readme

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

FAQs


Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc