A project I'm involved in uses testbook to test code cells of Jupyter notebooks. Patching works fine — unless the code to be tested asks for
max-size
nameof
probot
fgets
stdint
multiple-input
graphical-interaction
ioref
gawk
ejabberd-api
material-uipickers
phishing
autodiscovery
cookie-path
setalarmclock
celleditorlistener
pervasive
pyflux
pagecontrol
snobol
defaultnetworkcredentials
kubernetes-security
login
flanneld
solana-program-library
round-robin
mule-el
dsc
mixed-case
url-helper