@nox.session(python=PYTHON_VERSIONS)
def test_jupyter_notebooks(session):
    versions = copy.copy(DEFAULT_PYTHON_VERSIONS)
    if (session.python not in versions):
        session.skip(f"Not testing Jupyter notebook on Python {session.python}, supports [{','.join(versions)}]")
    session.install('jupyter', 'nbval', 'pyzmq')
    install_hydra(session, ['pip', 'install', '-e'])
    args = pytest_args('--nbval', 'examples/jupyter_notebooks/compose_configs_in_notebook.ipynb')
    args = [x for x in args if (x != '-Werror')]
    session.run(*args, silent=SILENT)
    notebooks_dir = Path('tests/jupyter')
    for notebook in [file for file in notebooks_dir.iterdir() if str(file).endswith('.ipynb')]:
        args = pytest_args('--nbval', str(notebook))
        args = [x for x in args if (x != '-Werror')]
        session.run(*args, silent=SILENT)
@nox.session(python=PYTHON_VERSIONS)
def test_jupyter_notebooks(session):
    versions = copy.copy(DEFAULT_PYTHON_VERSIONS)
    if (session.python not in versions):
        session.skip(f"Not testing Jupyter notebook on Python {session.python}, supports [{','.join(versions)}]")
    session.install('jupyter', 'nbval', 'pyzmq')
    install_hydra(session, ['pip', 'install', '-e'])
    args = pytest_args('--nbval', 'examples/jupyter_notebooks/compose_configs_in_notebook.ipynb')
    args = [x for x in args if (x != '-Werror')]
    session.run(*args, silent=SILENT)
    notebooks_dir = Path('tests/jupyter')
    for notebook in [file for file in notebooks_dir.iterdir() if str(file).endswith('.ipynb')]:
        args = pytest_args('--nbval', str(notebook))
        args = [x for x in args if (x != '-Werror')]
        session.run(*args, silent=SILENT)