Ipynb update (#8004)

* git submodule update --remote

* update notebooks in docs

* prune

* _notebooks

* docs

* path

* path

* ignore

* head
This commit is contained in:
Jirka Borovec 2021-06-17 16:46:05 +02:00 committed by GitHub
parent c6e02e481e
commit 7978a5376d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 14 additions and 13 deletions

4
.gitignore vendored
View File

@ -8,9 +8,7 @@ lightning_logs/
.vscode/
# Test-tube
test_tube_logs/
test_tube_data/
test_tube_exp/
test_tube_*/
# Documentations
docs/source/api

4
.gitmodules vendored
View File

@ -1,4 +1,4 @@
[submodule "notebooks"]
path = notebooks
[submodule "_notebooks"]
path = _notebooks
url = https://github.com/PyTorchLightning/lightning-tutorials.git
branch = publication

View File

@ -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

View File

@ -61,7 +61,7 @@ exclude .pyrightconfig.json
# Exclude submodules
exclude .gitmodules
exclude notebooks
exclude _notebooks
# Exclude Makefile
exclude Makefile

1
_notebooks Submodule

@ -0,0 +1 @@
Subproject commit 3321b468e78167aaf056894e92ed6d649c76e89e

View File

@ -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.

View File

@ -57,10 +57,11 @@ PyTorch Lightning Documentation
PyTorch Lightning 101 class <https://www.youtube.com/playlist?list=PLaMu-SDt_RB5NUm67hU2pdE75j6KaIOv2>
From PyTorch to PyTorch Lightning [Blog] <https://towardsdatascience.com/from-pytorch-to-pytorch-lightning-a-gentle-introduction-b371b7caaf09>
From PyTorch to PyTorch Lightning [Video] <https://www.youtube.com/watch?v=QHww1JH7IDU>
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

@ -1 +0,0 @@
Subproject commit aeae8085b48339e9bd9ab61d81cc0dc8b0d48f9c

View File

@ -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