hub/venv/lib/python3.7/site-packages/nbconvert/tests/files/hello.py

8 lines
234 B
Python
Raw Normal View History

from nbconvert.writers.base import WriterBase
class HelloWriter(WriterBase):
def write(self, output, resources, notebook_name=None, **kw):
with open('hello.txt', 'w') as outfile:
outfile.write('hello world')