Commit 1d1b1906 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_data_notebook bt5: Rename Base_displayMatplotlibImage to...

erp5_data_notebook bt5: Rename Base_displayMatplotlibImage to Base_displayImage so as to make it sound more generic
parent 97490594
......@@ -45,7 +45,7 @@ def Base_compileJupyterCode(self, jupyter_code, old_local_variable_dict):
"""
# Updating global variable mime_type to its original value
# Required when call to Base_displayMatplotlibImage is made which is changing
# Required when call to Base_displayImage is made which is changing
# the value of gloabl mime_type
global mime_type
mime_type = 'text/plain'
......@@ -185,9 +185,9 @@ def UpdateLocalVariableDict(self, existing_dict):
new_dict['imports'][key] = val
return new_dict
def Base_displayMatplotlibImage(self, image_object=None):
def Base_displayImage(self, image_object=None):
"""
External function to display Matplotlib Plot objects to jupyter function.
External function to display Image objects to jupyter frontend.
Parameters
----------
......
......@@ -8,7 +8,7 @@
<dictionary>
<item>
<key> <string>_function</string> </key>
<value> <string>Base_displayMatplotlibImage</string> </value>
<value> <string>Base_displayImage</string> </value>
</item>
<item>
<key> <string>_module</string> </key>
......@@ -16,7 +16,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_displayMatplotlibImage</string> </value>
<value> <string>Base_displayImage</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment