From 45ff5a2a31657e6a499415a836ee31440abcba7c Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 12 Feb 2009 18:25:23 +0100 Subject: [PATCH] /etc/skel/.ipython/ipythonrc: fix issue618 --- debian/changelog | 9 +++++++++ etc/skel/.ipython/ipythonrc | 14 ++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index ff6e3db..1761bea 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +grml-etc (1.1.13) unstable; urgency=low + + * /etc/skel/.ipython/ipythonrc: Do not activate the + IPython.Extensions.InterpreterExec module by default anymore. + Upstream does not ship this configuration snippet as well. + Thanks for reporting and debugging, wuehlmaus! [Closes: issue618] + + -- Michael Prokop Thu, 12 Feb 2009 18:24:11 +0100 + grml-etc (1.1.12) unstable; urgency=low * /etc/locale.gen.grml and /etc/locale.gen.minimal: drop diff --git a/etc/skel/.ipython/ipythonrc b/etc/skel/.ipython/ipythonrc index 873be55..181ee13 100644 --- a/etc/skel/.ipython/ipythonrc +++ b/etc/skel/.ipython/ipythonrc @@ -3,7 +3,6 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Fre Mai 25 02:40:10 CEST 2007 [mika] ################################################################################ #*************************************************************************** @@ -246,10 +245,14 @@ pprint 1 # are described in detail in the Customization section of the IPython HTML/PDF # manual. -# Use \# to represent the current prompt number, and quote them to protect spaces. +# Use \# to represent the current prompt number, and quote them to protect +# spaces. prompt_in1 'In [\#]: ' -# \D is replaced by as many dots as there are digits in the current value of \#. + +# \D is replaced by as many dots as there are digits in the +# current value of \#. prompt_in2 ' .\D.: ' + prompt_out 'Out[\#]: ' #prompt_in1 '[ip] \C_LightBlue\u@\C_White\h \Y1 \# \C_White% ' @@ -303,6 +306,7 @@ screen_length 0 # By choosing these you can organize your output any way you want. #separate_in \n +# Do *not* separate prompt lines, instead use default [z]sh behaviour: separate_in 0 separate_out 0 separate_out2 0 @@ -502,7 +506,9 @@ import_mod # Load all the actual syntax extensions for shell-like operation, which live # in the InterpreterExec standard extension. -import_all IPython.Extensions.InterpreterExec +# Warning: constructs like '[ x*3 for x in [1,2,3]]' might not work when +# activating this module - see http://bts.grml.org/grml/issue618 +# import_all IPython.Extensions.InterpreterExec #--------------------------------------------------------------------------- # Section: modules to import some functions from: 'from ... import ...' -- 2.1.4