File: hello.py

package info (click to toggle)
nbconvert 7.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,056 kB
  • sloc: python: 8,449; makefile: 199; javascript: 2
file content (7 lines) | stat: -rw-r--r-- 234 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
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")