Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

use notebookapp.DEFAULT_STATIC_FILES_PATH to get static path #112

Merged
merged 1 commit into from

2 participants

@juliantaylor
Collaborator

allows use of nbconvert with system packaged versions of IPython
closes #97

@juliantaylor juliantaylor use notebookapp.DEFAULT_STATIC_FILES_PATH to get static path
allows use of nbconvert with system packaged versions of IPython
closes #97
feac10d
@minrk minrk merged commit ba8a37b into from
@juliantaylor juliantaylor referenced this pull request in ipython/ipython
Merged

move DEFAULT_STATIC_FILES_PATH to IPython.html #3105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 23, 2013
  1. @juliantaylor

    use notebookapp.DEFAULT_STATIC_FILES_PATH to get static path

    juliantaylor authored
    allows use of nbconvert with system packaged versions of IPython
    closes #97
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 3 deletions.
  1. +7 −3 converters/html.py
View
10 converters/html.py
@@ -27,6 +27,7 @@
# IPython imports
from IPython.utils import path
+from IPython.frontend.html.notebook import notebookapp
# Our own imports
from .base import Converter
@@ -74,9 +75,12 @@ def header_body(self):
from pygments.formatters import HtmlFormatter
header = []
- static = os.path.join(path.get_ipython_package_dir(),
- 'frontend', 'html', 'notebook', 'static',
- )
+ static = getattr(notebookapp, 'DEFAULT_STATIC_FILES_PATH', None)
+ # ipython < 1.0
+ if static is None:
+ static = os.path.join(path.get_ipython_package_dir(),
+ 'frontend', 'html', 'notebook', 'static',
+ )
here = os.path.split(os.path.realpath(__file__))[0]
css = os.path.join(static, 'css')
for sheet in [
Something went wrong with that request. Please try again.