简体   繁体   中英

Selecting files in IPython notebooks

Is there a good way for me to select files on the host file-system through the IPython notebook? I was hoping for some sort of widget based solution.

For example, I want to train a machine learning algorithm using some files, and I want to be able to select which CSV files to use for training.

there are no widget (yet) but maybe you will do it :-) otherwise on *nix like with IPython you can do things like :

files = !ls *.train.csv
for f in files:
  ...

and it will do what you expect

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM