Permalink
Commits on Nov 1, 2011
  1. Word-wrap output correctly in the notebook; prevents excessive scroll…

    …ing.
    
    Firefox seems to not honor it correctly, but Webkit browsers (Chrome,
    rekonq, Safari) do.
    fperez committed Nov 1, 2011
Commits on Oct 31, 2011
  1. Merge pull request #950 from minrk/startup

    Add directory for startup files, enabling users to add local configuration more simply without having to know how the config system works much at all.
    
    Now, `profile/startup` dir is checked for files, and they are run prior to explicit exec_code and exec_files.
    
    A short README is added to the dir explaining how they work, and a short paragraph is added to the docs, in both the interactive tutorial and config overview.
    fperez committed Oct 31, 2011
  2. add test_profile with startup tests

    more profile tests should be added to this file
    minrk committed Oct 30, 2011
  3. add startup files to docs

    minrk committed Oct 30, 2011
  4. add README to startup dir

    minrk committed Oct 30, 2011
  5. add startup_dir to profiles

    Any .py or .ipy file in this directory will be run at startup.
    Files are run in in lexicographical order, as described in #914
    minrk committed Oct 21, 2011
Commits on Oct 30, 2011
  1. fix pyzmq check in setupext to handle 2.1.10

    closes gh-870
    minrk committed Oct 30, 2011
  2. Merge pull request #940 from minrk/hist_file_config

    Allow setting HistoryManager.hist_file with config.  This fixes trait init in HistoryAccessor, which prevented setting hist_file via config from having any effect.
    fperez committed Oct 30, 2011
  3. Merge pull request #948 from fperez/tornado-monkeypatch

    Monkeypatch Tornado 2.1.{0, 1} so it works with Google Chrome 16.
    
    This uses a fix from Tornado itself that's just a protocol number check, no actual protocol handling code is necessary.
    fperez committed Oct 30, 2011
  4. Monkeypatch Tornado 2.1.1 so it works with Google Chrome 16.

    We're just applying manually a fix from Tornado itself, see for
    details:
    
    tornadoweb/tornado#385
    tornadoweb/tornado@84d7b45
    fperez committed Oct 30, 2011
Commits on Oct 29, 2011
  1. - Patch applied.

    Alcides committed with takluyver Oct 21, 2011
  2. - Test case correctly fails.

      - Error stats for bin/iptest3 IPython.core.tests.test_run are:
    
    Ran 11 tests in 0.190s
    
    FAILED (KNOWNFAIL=1, errors=3)
    Alcides committed with takluyver Oct 21, 2011
  3. Merge pull request #923 from minrk/configmagic

    New %config magic to interactively manipulate all configurables.
    
    This allows users to type `%config Foo.bar = 5` to control any IPython configurable.
    
    The Magic class keeps a list of configurables which will be updated by the change, so any objects that should be accessible to this magic should be appended to `shell.configurables`.  I started with everything I saw as configurable in InteractiveShell.
    
    ## Usage
    
    Use just `%config` to see what classes are available, and `%config Class` to get the trait info for that class.
    
    When setting values via` %config Class.trait = value` It is evaluated with user_ns in globals, so you can do arbitrary things like:
    
    ```python
    In [4]: default = 'png'
    
    In [5]: %config InlineBackendConfig.figure_format = raw_input('what figure format should we use? ') or default
    ```
    
    ## Note
    
    This magic reveals just how much we *don't* use traits/config properly.  Almost everything is attached to the InteractiveShell object, and has an effect exactly once during an `init_foo()` method, rather than allowing config propagation via `_trait_changed()` methods.
    
    For instance, IPCompleter has an `omit__names` attribute, but the configurable is `InteractiveShell.readline_omit__names`, which is clearly wrong.
    
    We've done a good job with config in *new* code, but I think existing code needs a pretty hefty pass to get configurables attached to the right objects, and getting logic like `%colors` into `shell._colors_changed`.
    
    Closes #903
    fperez committed Oct 29, 2011
  4. Merge pull request #920 from minrk/parallel

    Unordered iteration of AsyncMapResults (+ a couple fixes)
    
    Feature:
    * AsyncMapResults now support unordered iteration, in case your map is inhomogeneous, and you want to get the quick results first (including new tests).
    
    Fix:
    * fixed '*' as an ip argument in the kernel/qtconsole and ipcontroller.  It was not always getting converted to a connectable interface.
    
    Docs and Examples:
    * added a couple more parallel examples, based on recent discussions (monitoring engine stdout/err, more advanced handling of results as they come in, AsyncMapResult iteration).
    * merged in some cleanup / fixes to the parallel docs from my SciPy 2011 tutorial.
    * moved parallel doc figures into figs subdir
    fperez committed Oct 29, 2011
  5. Merge pull request #941 from cboos/_rl-doc-glitch

    `_rl.__doc__` is `None` with pyreadline
    minrk committed Oct 29, 2011
  6. allow setting HistoryManager.hist_file with config

    fixes improper init in HistoryAccessor, preventing setting `hist_file` via config from having any effect.
    
    Also remove dependency on having a shell object in `HistoryAccessor.__init__`
    
    Associated test included.
    minrk committed Oct 29, 2011
  7. move completer configurables to IPCompleter where they belong

    * InteractiveShell.readline_omit__names -> IPCompleter.omit__names
    * InteractiveShell.readline_merge_completions -> IPCompleter.merge_completions
    
    add test for IPCompleter.omit__names, which also covers IPCompleter
    as a configurable.
    
    update %config doctest to match, and replace Completer with IPCompleter
    in TerminalIPythonApp.classes
    minrk committed Oct 25, 2011
  8. add reference to `%config InlineBackend` in %pylab docstring

    also cleaned up %config and %pylab docstrings to be a little more sphinx-autogen friendly.
    minrk committed Oct 25, 2011
  9. DisplayFormatter.formatters should not be configurable

    it is a dict of instances, which are not allowed in config
    minrk committed Oct 25, 2011
  10. Rename InlineBackendConfig -> InlineBackend

    include deprecation warning on old name
    minrk committed Oct 25, 2011
  11. move useful update_config method to Configurable from Application

    This method should be used whenever updating the config of an object.
    It is useful for all configurables, not just Applications.
    minrk committed Oct 24, 2011
  12. AsyncResult.__getattr__ shouldn't raise TimeoutError

    This causes problems for things that use hasattr, e.g. list(ar) checking
    for `__length_hint__`.
    
    tests added for getattr/getitem behavior
    minrk committed Oct 29, 2011
  13. add 'running' class to running code cells

    Will allow special styling of code cells that are running via
    `div.code_cell.running` in css.  Currently, no change is made.
    minrk committed Oct 23, 2011
Commits on Oct 28, 2011
  1. Merge pull request #931 from minrk/readonly

    The notebook now supports a `--read-only` flag, which allows users to view all notebooks being served but not to edit them or execute any code.  These actions are not allowed and the buttons, shortcuts, etc. are removed, but the requests will raise authentication errors if they manage to send the events anyway.  Save/print functions remain available.
    
    This flag can be used in two modes:
    
    1. When running an unauthenticated server, one can run a *second* read-only server in the same directory on a public IP address.  This will let users connect to the read-only view without having to worry about configuring passwords and certificates for the execution server.
    
    2. When running a server configured with authentication (and hopefully an SSL certificate), starting it with `--read-only` allows unauthenticated users read-only access to notebooks. This means that the same server on a single port can be both used by authenticated users for execution and by the public for viewing the available notebooks.
    fperez committed Oct 28, 2011