Not sure either, but I changed the file. Anyway, probably the issue had to do with the number of open files. I added the following lines in limits.conf: root soft nofile 655360 sage soft nofile 655360 root hard nofile 655360 sage hard nofile 655360
(sage is the user owning sage notebooks). After a reboot the 7.6 notebooks work OK. El jueves, 20 de abril de 2017, 17:33:36 (UTC+2), Samuel Lelievre escribió: > > Not sure if this is related, but one thing that goes wrong with > the upgrade to IPython 5.0 is that multiline output gets an > extraneous blank line, for example instead of > > sage: identity_matrix(2) > [1 0] > [0 1] > > we get > > sage: identity_matrix(2) > > [1 0] > [0 1] > > This is solved in IPython 5.3 but Sage has not upgraded to > that version yet. You can fix this on your installation by editing > the "prompts.py" file located at (from your SAGE_ROOT): > > local/lib/python/site-packages/IPython/terminal/prompts.py > > and replacing the definition of the RichPromptDisplayHook class > by the version at > > > https://github.com/takluyver/ipython/blob/83d273e24b28b9c06f0fa4f5bf90581db7c29be8/IPython/terminal/prompts.py > > ie > > ##### > class RichPromptDisplayHook(DisplayHook): > """Subclass of base display hook using coloured prompt""" > def write_output_prompt(self): > sys.stdout.write(self.shell.separate_out) > # If we're not displaying a prompt, it effectively ends with a > newline, > # because the output will be left-aligned. > self.prompt_end_newline = True > > if self.do_full_cache: > tokens = self.shell.prompts.out_prompt_tokens() > prompt_txt = ''.join(s for t, s in tokens) > if prompt_txt and not prompt_txt.endswith('\n'): > # Ask for a newline before multiline output > self.prompt_end_newline = False > > if self.shell.pt_cli: > self.shell.pt_cli.print_tokens(tokens) > else: > sys.stdout.write(prompt_txt) > ##### > > In case this extra blank line is interpreted somehow > as something returning None, this might explain why > you get the error message you quote: > > TypeError: 'NoneType' object is not iterable > > Just a wild guess, maybe worth a try... > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.