File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 "cell_type" : " markdown" ,
3030 "metadata" : {},
3131 "source" : [
32- " The header now makes package verion mismatches evident. "
32+ " The header now makes package version mismatches evident. "
3333 ]
3434 },
3535 {
Original file line number Diff line number Diff line change 1+ {
2+ "cells" : [
3+ {
4+ "cell_type" : " code" ,
5+ "execution_count" : null ,
6+ "metadata" : {},
7+ "outputs" : [],
8+ "source" : [
9+ " from nbproject.dev._jupyter_communicate import notebook_path\n " ,
10+ " \n " ,
11+ " assert notebook_path() is not None, \" Cannot infer notebook path.\" "
12+ ]
13+ }
14+ ],
15+ "metadata" : {
16+ "language_info" : {
17+ "name" : " python"
18+ }
19+ },
20+ "nbformat" : 4 ,
21+ "nbformat_minor" : 2
22+ }
Original file line number Diff line number Diff line change 1+ import subprocess
2+ from pathlib import Path
3+
4+
5+ def test_running_via_nbconvert ():
6+ result = subprocess .run (
7+ "jupyter nbconvert --to notebook --execute ./tests/for-nbconvert.ipynb" ,
8+ shell = True ,
9+ capture_output = True ,
10+ )
11+ print (result .stdout .decode ())
12+ print (result .stderr .decode ())
13+ assert result .returncode == 0
You can’t perform that action at this time.
0 commit comments