Skip to content

Instantly share code, notes, and snippets.

@jdfreder
Created July 4, 2013 16:41
Show Gist options
  • Save jdfreder/5929023 to your computer and use it in GitHub Desktop.
Save jdfreder/5929023 to your computer and use it in GitHub Desktop.
TODO For Writers
  • All transformer methods should know about the notebook_name. This should be passed down to the methods as the first argument. This include __call__, call and cell_transform

  • Rename cell_transform to transform_cell

  • Replace FIGURES_KEY by the literal "figures"

  • Convert unix line endings to \r\n if on windows for SVG. This will be sys.platform==win32.

  • Instead of using extra_extension_map let's create a new transformer whose job it is to convert figures from one format to another

  • Allow filters and transformers to be specified by dotted object name. Then use IPython.utils.import_string.import_item to get the Python object

  • Create a DebugWriter that outputs a nice format to stdout for debugging.

  • Look in IPython.html.notebookapp to see how we use the initialize method along with start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment