##// END OF EJS Templates
Merge pull request #1059 from fperez/__IPYTHON__...
Merge pull request #1059 from fperez/__IPYTHON__ Switch to simple `__IPYTHON__` global to indicate an IPython Shell object has been created. Note that this does *not* try to track whether user code is being executed by ipython via %run, nor whether the Shell object itself is running an interactive event loop or not. So the answer for how people should query whether IPython objects are active is now simply ``` try: __IPYTHON__ except NameError: print 'not in IPython' ``` We do not attempt to track activity levels anymore, as we realized that logic was ultimately to brittle and error prone to be of any real use.

File last commit:

r4657:88fabb9a
r5572:487b6b96 merge
Show More
prettify.css
47 lines | 689 B | text/css | CssLexer
.pln{
color:#000
}
@media screen{
.str{
color:#BA2121;
}.kwd{
color:#008000;
font-weight: bold;
}.com{
color:#408080;
font-style: italic;
}.typ{
color:#606
}.lit{
color:#666666;
}.pun,.opn,.clo{
}.tag{
color:#008
}.atn{
color:#606
}.atv{
color:#080
}.dec,.var{
color:#606
}.fun{
color:red
}
}
pre.prettyprint{
padding:2px;
border:1px solid #888
}
ol.linenums{
margin-top:0;
margin-bottom:0
}
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{
list-style-type:none
}
li.L1,li.L3,li.L5,li.L7,li.L9{
background:#eee
}