Skip to content
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

Merged
merged 21 commits into from May 24, 2012

Commits on May 11, 2012

  1. 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
    Carreau committed May 11, 2012
    Copy the full SHA
    39a372d View commit details
    Browse the repository at this point in the history
  2. 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
    Carreau committed May 11, 2012
    Copy the full SHA
    f8b00c0 View commit details
    Browse the repository at this point in the history
  3. rename %loadpy to %load, keep an alias

    As load as drop the .py requirement, renaming it to %load as fperez
    suggested in ipython#1110
    Carreau committed May 11, 2012
    Copy the full SHA
    8702092 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    797f353 View commit details
    Browse the repository at this point in the history
  5. fix %load docstring

    was still containing %pycat reference from copy and pasting
    Carreau committed May 11, 2012
    Copy the full SHA
    2c32c83 View commit details
    Browse the repository at this point in the history
  6. remove references to loadpy

    remove most of the references to loadpy across the docs and example
    Carreau committed May 11, 2012
    Copy the full SHA
    24cb742 View commit details
    Browse the repository at this point in the history
  7. soft %load source file limit

    ask the user to confirm source loading if more than 1600 caracters,
    through raw_input
    
    add a -y flag to skip confirmation
    Carreau committed May 11, 2012
    Copy the full SHA
    6acc03a View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    e665b80 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    de6bd12 View commit details
    Browse the repository at this point in the history
  10. use ask yes no in %loadpy

    Carreau committed May 11, 2012
    Copy the full SHA
    e2f64df View commit details
    Browse the repository at this point in the history
  11. use ask_yes_no in save magic

    Carreau committed May 11, 2012
    Copy the full SHA
    e9a5160 View commit details
    Browse the repository at this point in the history
  12. Copy the full SHA
    ee38c53 View commit details
    Browse the repository at this point in the history
  13. read_py_url-> read_py_file

    Carreau committed May 11, 2012
    Copy the full SHA
    27b67f2 View commit details
    Browse the repository at this point in the history
  14. fix english, typo, remove code that was a test

    also remove unused import from openpy
    Carreau committed May 11, 2012
    Copy the full SHA
    c3cea33 View commit details
    Browse the repository at this point in the history
  15. find_user_code improvement for not py-files

    retry to open file/url without stripping encodding cookie if it fails
    with UnicodeDecodingError
    Carreau committed May 11, 2012
    Copy the full SHA
    8c40bf8 View commit details
    Browse the repository at this point in the history
  16. Copy the full SHA
    ba0a58d View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    4b59773 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2012

  1. fallback on latin1

    Carreau committed May 12, 2012
    Copy the full SHA
    634dbea View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    f9f2400 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2012

  1. Copy the full SHA
    195949e View commit details
    Browse the repository at this point in the history
  2. remove unused import

    Carreau committed May 23, 2012
    Copy the full SHA
    117fa30 View commit details
    Browse the repository at this point in the history