Skip to content

Commit

Permalink
comment display_id_map structure
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Apr 4, 2017
1 parent af5a35d commit 37e8e2a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions nbconvert/preprocessors/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
except ImportError:
from Queue import Empty # Py 2

from traitlets import List, Unicode, Bool, Enum, Any, Type, default
from traitlets import List, Unicode, Bool, Enum, Any, Type, Dict, default

from nbformat.v4 import output_from_msg
from .base import Preprocessor
Expand Down Expand Up @@ -161,7 +161,15 @@ def _km_default(self):
raise ImportError("`nbconvert --execute` requires the jupyter_client package: `pip install jupyter_client`")
return KernelManager

_display_id_map = {}
# mapping of locations of outputs with a given display_id
# tracks cell index and output index within cell.outputs for
# each appearance of the display_id
# {
# 'display_id': {
# cell_idx: [output_idx,]
# }
# }
_display_id_map = Dict()

def preprocess(self, nb, resources):
"""
Expand Down

0 comments on commit 37e8e2a

Please sign in to comment.