Run MRJob from IPython notebook <p>I'm trying to run mrjob example from IPython notebook</p> <pre><code>from mrjob.job import MRJob class MRWordFrequencyCount(MRJob): def mapper(self, _, line): yield "chars", len(line) yield "words", len(line.split()) yield "lines", 1 def reducer(self, key, values): yield key, sum(values) </code></pre> <p>then run it with code</p> <pre><code>mr_job = MRWordFrequencyCount(args=["testfile.txt"]) with mr_job.make_runner() as runner: runner.run() for line in runner.stream_output(): key, value = mr_job.parse_output_line(line) print key, value </code></pre> <p>and getting the error:</p> <pre><code>TypeError: &lt;module '__main__' (built-in)&gt; is a built-in class </code></pre> <p>Is there way to run mrjob from IPython notebook?</p>