Open pedritomelenas opened 6 years ago
I also have this on mac under GAP 4.11.1:
LogTo("testlog.txt");
results in
Error, LogTo: cannot log to testlog.txt in
LOG_TO( expandname ); at /Users/alexk/gap/gap-4.11.1/lib/streams.gi:300 called from
<function "LogTo for output file">( <arguments> )
called from read-eval loop at stream:1
@ZachNewbery does this work for you in WSL on Windows?
No i get the same error unfortunately :(
While I'd be interested to understand why it does not work, and this should be mentioned in known limitations of the GAP Jupyter kernel (@ZachNewbery currently works on documenting them), using LogTo
in Jupyter notebook is perhaps a non-Jupyter way of thinking. The notebook contains all input and output already, so why one wants to have a log (which would possibly have more, all false attempts, error messages etc.?) instead of a clean notebook? If you want to convert it to a plain text file, you can use Jupyter functionality to save the notebook as a text, and then clean it up.
Note also Jupytext which lets you maintain a text version of a notebook (with only the input cells) in Markdown or reStructuredText format.
excellent suggestion @slel - thanks!
Before closing this, I'll add some text to the manual.
1.5 Known Limitations and Caveats now mentions this, but maybe the text could be extended with some advice from the above.
May be it is in my install (macos).
LogTo
does not write into the file specified in the argument. Thanks, Pedro