Skip to content

Commit

Permalink
#6644 python output containers broken (#6653)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbidas authored and scottdraves committed Jan 12, 2018
1 parent 57a656c commit ba8331b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions beakerx/beakerx/beakerx_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def __init__(self, **kwargs):

_view_name = Unicode('HTMLPreView').tag(sync=True)
_model_name = Unicode('HTMLPreModel').tag(sync=True)
_view_module = Unicode('beakerx').tag(sync=True)
_model_module = Unicode('beakerx').tag(sync=True)
_model_module_version = Unicode('*').tag(sync=True)
_view_module_version = Unicode('*').tag(sync=True)

Expand Down Expand Up @@ -284,6 +286,9 @@ def __init__(self, **kwargs):
class CyclingDisplayBox(BeakerxBox):
_view_name = Unicode('CyclingDisplayBoxView').tag(sync=True)
_model_name = Unicode('CyclingDisplayBoxModel').tag(sync=True)
_view_module = Unicode('beakerx').tag(sync=True)
_model_module = Unicode('beakerx').tag(sync=True)

period = Int(5000).tag(sync=True)

def __init__(self, children):
Expand Down
2 changes: 1 addition & 1 deletion beakerx/beakerx/output_container/outputcontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def getWidgets(self, container):

def toWidget(self, item):
if item is None:
return self.createHTML("None")
return self.createHTMLPre("None")

if isinstance(item, DataFrame):
return TableDisplay(item)
Expand Down
4 changes: 2 additions & 2 deletions doc/python/OutputContainers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"metadata": {},
"outputs": [],
"source": [
"rates = pd.read_csv('resources/data/interest-rates.csv')\n",
"rates = pd.read_csv('../resources/data/interest-rates.csv')\n",
"c = Color(120, 120, 120, 100)\n",
"plot1 = Plot(initWidth= 300, initHeight= 400) \n",
"plot1.add(Points(x= rates.y1, y=rates.y30, size= 3, displayName=\"y1 vs y30\"))\n",
Expand Down Expand Up @@ -146,7 +146,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.4"
"version": "3.6.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit ba8331b

Please sign in to comment.