Show More
|
1 | NO CONTENT: modified file |
@@ -117,7 +117,7 b' class OSMagics(Magics):' | |||
|
117 | 117 | try: |
|
118 | 118 | alias,cmd = par.split(None, 1) |
|
119 | 119 | except TypeError: |
|
120 |
print |
|
|
120 | print(oinspect.getdoc(self.alias)) | |
|
121 | 121 | return |
|
122 | 122 | |
|
123 | 123 | try: |
@@ -140,5 +140,4 b' class PylabMagics(Magics):' | |||
|
140 | 140 | def _show_matplotlib_backend(self, gui, backend): |
|
141 | 141 | """show matplotlib message backend message""" |
|
142 | 142 | if not gui or gui == 'auto': |
|
143 |
print |
|
|
144 | ||
|
143 | print("Using matplotlib backend: %s" % backend) |
@@ -75,7 +75,7 b' def getfigs(*fig_nums):' | |||
|
75 | 75 | for num in fig_nums: |
|
76 | 76 | f = Gcf.figs.get(num) |
|
77 | 77 | if f is None: |
|
78 |
print |
|
|
78 | print('Warning: figure %s not available.' % num) | |
|
79 | 79 | else: |
|
80 | 80 | figs.append(f.canvas.figure) |
|
81 | 81 | return figs |
@@ -249,7 +249,7 b' class InteractiveShellApp(Configurable):' | |||
|
249 | 249 | self.log.info("Enabling GUI event loop integration, " |
|
250 | 250 | "eventloop=%s, matplotlib=%s", gui, backend) |
|
251 | 251 | if key == "auto": |
|
252 |
print |
|
|
252 | print("Using matplotlib backend: %s" % backend) | |
|
253 | 253 | else: |
|
254 | 254 | gui = r |
|
255 | 255 | self.log.info("Enabling GUI event loop integration, " |
@@ -475,7 +475,6 b' class AutoreloadMagics(Magics):' | |||
|
475 | 475 | if not modname: |
|
476 | 476 | to_reload = sorted(self._reloader.modules.keys()) |
|
477 | 477 | to_skip = sorted(self._reloader.skip_modules.keys()) |
|
478 | to_skip.sort() | |
|
479 | 478 | if stream is None: |
|
480 | 479 | stream = sys.stdout |
|
481 | 480 | if self._reloader.check_all: |
@@ -618,9 +618,9 b' class RMagics(Magics):' | |||
|
618 | 618 | ri.set_writeconsole(old_writeconsole) |
|
619 | 619 | |
|
620 | 620 | except RInterpreterError as e: |
|
621 |
print |
|
|
621 | print(e.stdout) | |
|
622 | 622 | if not e.stdout.endswith(e.err): |
|
623 |
print |
|
|
623 | print(e.err) | |
|
624 | 624 | rmtree(tmpd) |
|
625 | 625 | return |
|
626 | 626 |
@@ -157,7 +157,7 b" def install_mathjax(tag='v2.2', dest=default_dest, replace=False, file=None, ext" | |||
|
157 | 157 | try: |
|
158 | 158 | anything_to_do = prepare_dest(dest, replace) |
|
159 | 159 | except OSError as e: |
|
160 |
print |
|
|
160 | print("ERROR %s, require write access to %s" % (e, dest)) | |
|
161 | 161 | return 1 |
|
162 | 162 | else: |
|
163 | 163 | if not anything_to_do: |
@@ -398,7 +398,7 b' class Demo(object):' | |||
|
398 | 398 | |
|
399 | 399 | print(self.marquee('<%s> block # %s (%s remaining)' % |
|
400 | 400 | (self.title,index,self.nblocks-index-1)), file=io.stdout) |
|
401 |
print |
|
|
401 | print(self.src_blocks_colored[index], file=io.stdout) | |
|
402 | 402 | sys.stdout.flush() |
|
403 | 403 | |
|
404 | 404 | def show_all(self): |
@@ -93,7 +93,7 b' class ServePostProcessor(PostProcessorBase):' | |||
|
93 | 93 | http_server = httpserver.HTTPServer(app) |
|
94 | 94 | http_server.listen(self.port, address=self.ip) |
|
95 | 95 | url = "http://%s:%i/%s" % (self.ip, self.port, filename) |
|
96 |
print |
|
|
96 | print("Serving your slides at %s" % url) | |
|
97 | 97 | print("Use Control-C to stop this server") |
|
98 | 98 | if self.open_in_browser: |
|
99 | 99 | webbrowser.open(url, new=2) |
@@ -35,9 +35,9 b' class DebugWriter(WriterBase):' | |||
|
35 | 35 | """ |
|
36 | 36 | |
|
37 | 37 | if isinstance(resources['outputs'], dict): |
|
38 |
print |
|
|
39 |
print |
|
|
38 | print("outputs extracted from %s" % notebook_name) | |
|
39 | print('-' * 80) | |
|
40 | 40 | pprint(resources['outputs'], indent=2, width=70) |
|
41 | 41 | else: |
|
42 |
print |
|
|
43 |
print |
|
|
42 | print("no outputs extracted from %s" % notebook_name) | |
|
43 | print('=' * 80) |
@@ -734,9 +734,9 b' class Client(HasTraits):' | |||
|
734 | 734 | msg_id = parent['msg_id'] |
|
735 | 735 | if msg_id not in self.outstanding: |
|
736 | 736 | if msg_id in self.history: |
|
737 |
print |
|
|
737 | print("got stale result: %s"%msg_id) | |
|
738 | 738 | else: |
|
739 |
print |
|
|
739 | print("got unknown result: %s"%msg_id) | |
|
740 | 740 | else: |
|
741 | 741 | self.outstanding.remove(msg_id) |
|
742 | 742 | |
@@ -770,11 +770,11 b' class Client(HasTraits):' | |||
|
770 | 770 | msg_id = parent['msg_id'] |
|
771 | 771 | if msg_id not in self.outstanding: |
|
772 | 772 | if msg_id in self.history: |
|
773 |
print |
|
|
773 | print("got stale result: %s"%msg_id) | |
|
774 | 774 | print(self.results[msg_id]) |
|
775 | 775 | print(msg) |
|
776 | 776 | else: |
|
777 |
print |
|
|
777 | print("got unknown result: %s"%msg_id) | |
|
778 | 778 | else: |
|
779 | 779 | self.outstanding.remove(msg_id) |
|
780 | 780 | content = msg['content'] |
General Comments 0
You need to be logged in to leave comments.
Login now