[sage-support] Re: Cython in jupyter notebook

2018-04-15 Thread Simon King
Hi Nils, On 2018-04-15, Nils Bruin wrote: > The quickest workaround for now is to just eliminate the whole error > redirection. We didn't have it before either. If you have control over the > distribution you use to teach, that might get you through your lecture. Indeed I'll just use the Sage

[sage-support] Re: Cython in jupyter notebook

2018-04-15 Thread Nils Bruin
Problems like this have been encountered before. This seems to work around problems in the other direction (i.e., let Jupyter deal with an actual file rather than one of its streams): https://stackoverflow.com/questions/34145950/is-there-a-way-to-redirect-stderr-to-file-in-jupyter The quickest

[sage-support] Re: Cython in jupyter notebook

2018-04-15 Thread Simon King
Hi Nils, On 2018-04-15, Nils Bruin wrote: > ... > where this code was committed: > > try: > # Capture errors from distutils and its child processes > with open(os.path.join(target_dir, name + ".err"), 'w+') as errfile: > try: > with redirection(sys.

[sage-support] Re: Cython in jupyter notebook

2018-04-15 Thread Nils Bruin
On Sunday, April 15, 2018 at 7:11:06 AM UTC-7, Simon King wrote: > > Hi! > > The following cython code compiles fine in SageMath command line version > and it *used* to compile fine in the jupyter notebook one year ago: > > cython(""" > def mantisse(): > cdef double a = 1 > cdef d