def test_same_folder(self, filename, execute):
     ex = ' executed' if execute else ' not_executed'
     document_name = Path(filename).stem + ex + ' NEW NAME'
     convert(filename,
             to='md',
             execute=execute,
             document_name=document_name)
 def test_matplotlib(self):
     filename = 'tests/notebooks/Test 1.ipynb'
     to = 'pdf'
     document_name = Path(filename).stem + ' matplotlib NEW NAME'
     convert(filename,
             to=to,
             execute=True,
             document_name=document_name,
             table_conversion='matplotlib')
 def test_output_dir(self):
     filename = 'tests/notebooks/Short.ipynb'
     to = 'pdf'
     document_name = Path(filename).stem + ' output_dir NEW NAME'
     convert(filename,
             to=to,
             execute=True,
             output_dir='tests/test_output',
             document_name=document_name)
 def test_save_notebook(self):
     filename = 'tests/notebooks/Short.ipynb'
     to = 'pdf'
     document_name = Path(filename).stem + ' saved NEW NAME'
     convert(filename,
             to=to,
             save_notebook=True,
             execute=True,
             document_name=document_name)
Example #5
0
 def test_same_folder(self):
     convert(self.filename, to='pdf')
Example #6
0
 def test_no_execute(self):
     convert(self.filename,
             to='md',
             document_name='Test 1 Notebook NO EXECUTE')
Example #7
0
 def test_different_folder(self):
     convert(self.filename,
             to='md',
             output_dir='notebooks/test_output',
             save_notebook=True,
             document_name='New Test Name')
Example #8
0
 def test_different_folder(self):
     convert(self.filename,
             to='pdf',
             output_dir='notebooks/test_output',
             save_notebook=True,
             document_name='Test 1 Notebook NEW NAME')
 def create_markdown(self):
     from dataframe_image import convert
     convert(self.filename, to='md')