New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Share code for %pycat and %loadpy, make %pycat aware of URLs #1606
Commits on May 11, 2012
-
share code for pycat and loadpy
this make %pycat aware of URLs and %loadpy able to load file with the user not having to write the py extension. %loadpy is still verifying that the loaded file as a .py extension
-
make pycat and loadpy aware of history and more
improve utils function 'find_user_code' in interactive-shell to look at url, and local file. Use it in %loadpy and pycat. the side effect are that you can now, in some cases, use URL and filepaths in %pastbin, %macro and %save
-
rename %loadpy to %load, keep an alias
As load as drop the .py requirement, renaming it to %load as fperez suggested in ipython#1110
-
-
was still containing %pycat reference from copy and pasting
-
remove most of the references to loadpy across the docs and example
-
ask the user to confirm source loading if more than 1600 caracters, through raw_input add a -y flag to skip confirmation
-
-
-
-
-
-
fix english, typo, remove code that was a test
also remove unused import from openpy
-
find_user_code improvement for not py-files
retry to open file/url without stripping encodding cookie if it fails with UnicodeDecodingError
-
-