Input/Output chapter 9 has path commands that throw errors in windows
Opened this issue · 1 comments
gahobbsau commented
Referring the the Cell numbers as in the PFF second edition, chapter 9.
Cell 8: ll Spath*
ll is possibly intended to refer to a python module/library, but if so it has not been declared.
There are multiple occurrences of this case in the notebook.
Cell 25: Code in the Notebook differs from that in the Book.
Book has: !rm -f $path*
Notebook has: get_ipython().system('rm -f $path*')
However, !rm -f appears to be a linux system command. [Windows: del /f {path/filename}
The path variable intended by $path* has not been successfully declared, due the Cell 8 issue.
Some guidance on how both of these are supposed to work in windows would be appreciated.
yhilpisch commented
Indeed, all these commands only work on Linux and MacOS.
They only show the contents of a folder or remove previously created
(temporary) files.
You can simply ignore (comment out) them without influencing the original
Python code.
…On Thu, Sep 19, 2019 at 3:33 PM Graham Hobbs ***@***.***> wrote:
Referring the the Cell numbers as in the PFF second edition, chapter 9.
Cell 8: ll Spath*
ll is possibly intended to refer to a python module/library, but if so it
has not been declared.
$path* fails as a Syntax error at the $.
There are multiple occurrences of this case in the notebook.
Cell 25: Code in the Notebook differs from that in the Book.
Book has: !rm -f $path*
Notebook has: get_ipython().system('rm -f $path*')
However, !rm -f appears to be a linux system command. [Windows: del /f
{path/filename}
The path variable intended by $path* has not been successfully declared,
due the Cell 8 issue.
Some guidance on how both of these are supposed to work in windows would
be appreciated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5?email_source=notifications&email_token=ABC4LAALC6ZIKWWU5SYRJH3QKM2L7A5CNFSM4IYICTDKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMLBV7Q>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABC4LAFAW3RNGWKLPTHFSATQKM2L7ANCNFSM4IYICTDA>
.
--
Dr Yves J Hilpisch
CEO | http://tpq.io | @dyjh <http://twitter.com/dyjh>
The Python Quants | The AI Machine