File: tools

package info (click to toggle)
ipython 1.2.1-2~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 22,884 kB
  • sloc: python: 67,305; makefile: 469; lisp: 272; sh: 251
file content (33 lines) | stat: -rwxr-xr-x 596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
set -efu

export HOME=$ADTTMP
cd $ADTTMP

if [ "$1" = "ipython" ]; then
IPYTHON=ipython
IRUNNER=irunner
IPCLUSTER=ipcluster
elif [ "$1" = "ipython3" ]; then
IPYTHON=ipython3
IRUNNER=irunner3
IPCLUSTER=ipcluster3
fi

$IPYTHON locate
$IPYTHON profile create 2>&1

$IPYTHON profile create foo_profile 2>&1
$IPYTHON profile list | grep foo_profile 2>&1

# "test" 701597, it won't fail but it can be seen by inspecting the logs
cat << EOF > test.py
from lxml import etree;
tree = etree.fromstring('<a></a>')
tree.find('/')
EOF

$IRUNNER test.py
$IRUNNER --ipython test.py

$IPCLUSTER --help