Skip to content

Commit

Permalink
Update nbconvert_library.ipynb (#1695)
Browse files Browse the repository at this point in the history
The generated html file was not following the 'classic' template, but instead 'lab', when I ran the code according to documentaion. But when I passed the template_name as a keyword arguement to HTMLExporter it worked. So I made necessary changes to the code, in a way which worked for me. Please do a review of the code and accept the changes
  • Loading branch information
letterphile committed Dec 28, 2021
1 parent 708b217 commit 45df4b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/source/nbconvert_library.ipynb
Expand Up @@ -101,8 +101,7 @@
"\n",
"# 2. Instantiate the exporter. We use the `classic` template for now; we'll get into more details\n",
"# later about how to customize the exporter further.\n",
"html_exporter = HTMLExporter()\n",
"html_exporter.template_name = 'classic'\n",
"html_exporter = HTMLExporter(template_name = 'classic')\n",
"\n",
"# 3. Process the notebook we loaded earlier\n",
"(body, resources) = html_exporter.from_notebook_node(jake_notebook)"
Expand Down

0 comments on commit 45df4b6

Please sign in to comment.