在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:chrisjsewell/pytest-notebook开源软件地址:https://github.com/chrisjsewell/pytest-notebook开源编程语言:Jupyter Notebook 55.0%开源软件介绍:pytest-notebookA pytest plugin for regression testing and regenerating Jupyter Notebooks. PurposeThe purpose of the plugin is to ensure that changes to the python environment (e.g. updating packages), have not affected the outputs of the notebook. If the notebook has changed, this plugin can also regenerate the notebooks, saving the new outputs. Features
InstallationTo install from Conda (recommended): >> conda install -c conda-forge pytest-notebook >> pip install pytest-notebook To install the development version: >> git clone https://github.com/chrisjsewell/pytest-notebook .
>> cd pytest-notebook
>> pip install --upgrade pip
>> pip install -e .
>> # pip install -e .[code_style,testing,docs] # install extras for more features UsageSee the documentation at: http://pytest-notebook.readthedocs.io/ If you want to test some sample notebooks, add the >> git clone https://github.com/chrisjsewell/pytest-notebook
>> cd pytest-notebook/samples
>> pip install pytest ipykernel pytest-notebook
>> pytest --nb-test-files *.ipynb You should see You can regenerate the outputs of >> pytest --nb-test-files --nb-force-regen *.ipynb ContributingContributions are very welcome. The following will discover and run all unit test: >> pip install -e .[testing]
>> pytest -v Coding Style RequirementsThe code style is tested using flake8,
with the configuration set in Installing with >> cd pytest-notebook
>> pre-commit install Optionally you can run >> black .
>> flake8 . Editors like VS Code also have automatic code reformat utilities, which can adhere to this standard. LicenseDistributed under the terms of the BSD-3 license,
IssuesIf you encounter any problems, please file an issue along with a detailed description. Acknowledgements |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论