Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Chilipp/sphinx-nbexamples
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 71fef68b8cb83c11ce34840928ebda11498eae03
Choose a base ref
..
head repository: Chilipp/sphinx-nbexamples
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: acb0258b64aa133d9986fed9c53ba37347881920
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 sphinx_nbexamples/__init__.py
4 changes: 2 additions & 2 deletions sphinx_nbexamples/__init__.py
Original file line number Diff line number Diff line change
@@ -359,7 +359,7 @@ def process_notebook(self, disable_warnings=True):
if disable_warnings:
nb.cells.pop(i)

language_info = getattr(nb.metadata_info, 'language_info', {})
language_info = getattr(nb.metadata, 'language_info', {})
ext = language_info.get('file_extension', 'py')
self.script = self.get_out_file(ext.lstrip('.'))

@@ -417,7 +417,7 @@ def create_rst(self, nb, in_dir, odir):
rst_content = raw_rst
rst_content = '.. _%s:\n\n' % self.reference + \
rst_content
language_info = getattr(nb.metadata_info, 'language_info', {})
language_info = getattr(nb.metadata, 'language_info', {})
url = self.url
if url is not None:
rst_content += self.CODE_DOWNLOAD_NBVIEWER.format(