We use managed EMR notebooks for analysis of data stored on S3 using Spark. However whenever we render any HTML data e.g. KeplerGL / JSON display etc, it renders the IPython object reference instead of the actual html content. This prevents us from visualising data easily using EMR notebooks. There are a lot of documented examples for matlabplotlib but we couldn't find anything for JSON / HTML / KeplerGL / Other geo visualisation libraries.
Example:
from IPython.display import JSON
JSON({
'string': 'string',
'array': [1, 2, 3],
'bool': True,
'object': {
'foo': 'bar'
}
})
Output:
<IPython.core.display.JSON object>
Similar question from Stackoverflow: https://stackoverflow.com/questions/66524337/produce-html-output-from-aws-emr-jupyter-notebook
Env details:
- Jupyterlab: Version 3.1.4
- EMR release label: emr-5.34.0 (also reproducible on emr-5.33.1)