Package: ipython
Version: 1.1.0-1
Severity: normal
Tags: patch
Hi,
Trying to convert an ipython notebook to html fails with this error:
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-
packages/IPython/html/static/style/style.min.css'
The attached patch corrects the problem.
Yannick
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
x32
Kernel: Linux 3.13.1 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ipython depends on:
ii python 2.7.5-5
ii python-decorator 3.4.0-2
ii python-pexpect 3.1-1
ii python-simplegeneric 0.8.1-1
ipython recommends no packages.
Versions of packages ipython suggests:
ii ipython-doc 1.1.0-1
ii ipython-notebook 1.1.0-1
ii ipython-qtconsole 1.1.0-1
ii libpython2.7-stdlib [python-argparse] 2.7.6-5
ii python [python-profiler] 2.7.5-5
ii python-matplotlib 1.3.1-1
ii python-numpy 1:1.8.0-1
ii python-zmq 14.0.1-1
-- no debconf information
--- a/IPython/nbconvert/transformers/csshtmlheader.py
+++ b/IPython/nbconvert/transformers/csshtmlheader.py
@@ -88,8 +88,8 @@ class CSSHTMLHeaderTransformer(Transform
header = []
#Construct path to IPy CSS
- sheet_filename = os.path.join(path.get_ipython_package_dir(),
- 'html', 'static', 'style', 'style.min.css')
+ sheet_filename = \
+ "/usr/share/ipython/notebook/static/style/style.min.css"
#Load style CSS file.
with io.open(sheet_filename, encoding='utf-8') as file:
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team