nteract/testbook

tb contains method

Open

#97 opened on Apr 14, 2021

 (0 comments) (0 reactions) (0 assignees)Python (38 forks)auto 404
enhancementgood first issuesprint-friendly

Repository metrics

Stars
 (435 stars)
PR merge metrics
 (PR metrics pending)

Description

Also, it would be nice if the following check is supported: 'happy_fraction' in tb

Implement a __contains__ method which returns whether the variable/function is present in the notebook or not (in memory).

Originally posted by @rohitsanj in https://github.com/nteract/testbook/issues/96#issuecomment-819540146

Contributor guide