diff --git a/.gitignore b/.gitignore index 4c616c9948..59340744ce 100644 --- a/.gitignore +++ b/.gitignore @@ -8,9 +8,7 @@ lightning_logs/ .vscode/ # Test-tube -test_tube_logs/ -test_tube_data/ -test_tube_exp/ +test_tube_*/ # Documentations docs/source/api diff --git a/.gitmodules b/.gitmodules index 42d147c2d3..b311352c45 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ -[submodule "notebooks"] - path = notebooks +[submodule "_notebooks"] + path = _notebooks url = https://github.com/PyTorchLightning/lightning-tutorials.git branch = publication diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 432f782b5b..ee8f20a613 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -56,6 +56,7 @@ repos: rev: 'v2.3' hooks: - id: vulture + name: Check dead code - repo: https://github.com/PyCQA/flake8 rev: 3.9.2 diff --git a/MANIFEST.in b/MANIFEST.in index 2e16e68785..bad4202fae 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -61,7 +61,7 @@ exclude .pyrightconfig.json # Exclude submodules exclude .gitmodules -exclude notebooks +exclude _notebooks # Exclude Makefile exclude Makefile diff --git a/_notebooks b/_notebooks new file mode 160000 index 0000000000..3321b468e7 --- /dev/null +++ b/_notebooks @@ -0,0 +1 @@ +Subproject commit 3321b468e78167aaf056894e92ed6d649c76e89e diff --git a/docs/source/conf.py b/docs/source/conf.py index 613303f478..042e44a936 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -23,7 +23,7 @@ import pt_lightning_sphinx_theme PATH_HERE = os.path.abspath(os.path.dirname(__file__)) PATH_ROOT = os.path.join(PATH_HERE, '..', '..') -PATH_RAW_NB = os.path.join(PATH_ROOT, 'notebooks') +PATH_RAW_NB = os.path.join(PATH_ROOT, '_notebooks') PATH_IPYNB = os.path.join(PATH_HERE, 'notebooks') sys.path.insert(0, os.path.abspath(PATH_ROOT)) sys.path.append(os.path.join(PATH_RAW_NB, '.actions')) @@ -151,6 +151,7 @@ language = None # This pattern also affects html_static_path and html_extra_path. exclude_patterns = [ f'{FOLDER_GENERATED}/PULL_REQUEST_TEMPLATE.md', + 'notebooks/course_UvA-DL/*', ] # The name of the Pygments (syntax highlighting) style to use. diff --git a/docs/source/index.rst b/docs/source/index.rst index 61abc2b010..a718530a42 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -57,10 +57,11 @@ PyTorch Lightning Documentation PyTorch Lightning 101 class From PyTorch to PyTorch Lightning [Blog] From PyTorch to PyTorch Lightning [Video] - notebooks/starters/mnist-hello-world.ipynb - notebooks/starters/datamodules.ipynb - notebooks/starters/cifar10-baseline.ipynb - notebooks/starters/basic-gan.ipynb + notebooks/lightning_examples/mnist-hello-world.ipynb + notebooks/lightning_examples/datamodules.ipynb + notebooks/lightning_examples/cifar10-baseline.ipynb + notebooks/lightning_examples/basic-gan.ipynb + notebooks/lightning_examples/augmentation_kornia.ipynb .. toctree:: :maxdepth: 2 diff --git a/notebooks b/notebooks deleted file mode 160000 index aeae8085b4..0000000000 --- a/notebooks +++ /dev/null @@ -1 +0,0 @@ -Subproject commit aeae8085b48339e9bd9ab61d81cc0dc8b0d48f9c diff --git a/requirements/docs.txt b/requirements/docs.txt index b7e5641697..5328c679d1 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -12,4 +12,4 @@ sphinx-paramlinks>=0.5.1 sphinx-togglebutton>=0.2 sphinx-copybutton>=0.3 --r ../notebooks/.actions/requirements.txt +-r ../_notebooks/.actions/requirements.txt