2022-05-23 00:16:32 +04:00

8 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")