• Copilot's avatar
    Fix issue #1554: Preserve custom thumbnails in gallery script (#1649) · a99feb55
    Copilot 提交于
    * Initial plan
    
    * Fix issue #1554: Preserve custom thumbnails in gallery script
    
    Modified scripts/generate_gallery.py to check if a thumbnail file already
    exists before extracting from notebooks. This prevents the script from
    overwriting manually-placed custom thumbnails in the _thumbnails directory.
    
    The gen_previews() method now:
    1. Checks if self.png_path exists
    2. If yes, logs info message and returns early (preserving custom thumbnail)
    3. If no, proceeds with extraction from notebook or uses default logo
    
    Fixes #1554
    
    ---------
    Co-authored-by: 's avatarcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
    a99feb55
名称
最后提交
最后更新
.github 正在载入提交数据...
doc 正在载入提交数据...
pytensor 正在载入提交数据...
scripts 正在载入提交数据...
tests 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
.pre-commit-config.yaml 正在载入提交数据...
.readthedocs.yaml 正在载入提交数据...
CODE_OF_CONDUCT.md 正在载入提交数据...
CONTRIBUTING.md 正在载入提交数据...
GOVERNANCE.md 正在载入提交数据...
LICENSE.txt 正在载入提交数据...
MANIFEST.in 正在载入提交数据...
README.rst 正在载入提交数据...
codecov.yml 正在载入提交数据...
conftest.py 正在载入提交数据...
environment-osx-arm64.yml 正在载入提交数据...
environment.yml 正在载入提交数据...
pyproject.toml 正在载入提交数据...
setup.py 正在载入提交数据...