Vehicle-Anti-Theft-Face-Rec.../venv/Lib/site-packages/nbconvert/tests/files/hello.py

7 lines
234 B
Python

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')