Skip to content

parts of sagews-jupyter example fail on newly installed cocalc docker instance #21

@edgimar

Description

@edgimar

When trying to run this worksheet on a self-hosted cocalc instance (docker container built/pulled on 2021-04-15), various cells fail to run. For example:

# embed external web page
from IPython.core.display import HTML
HTML('<iframe src="https://en.m.wikipedia.org/" width="95%" height=350>')

results in the following:

Error in lines 1-1
Traceback (most recent call last):
  File "/usr/local/sage/local/lib/python3.8/site-packages/smc_sagews/sage_server.py", line 1230, in execute
    exec(
  File "", line 1, in <module>
  File "/usr/local/sage/local/lib/python3.8/site-packages/smc_sagews/sage_server.py", line 1324, in execute_with_code_decorators
    code = code_decorator(code)
  File "/usr/local/sage/local/lib/python3.8/site-packages/smc_sagews/sage_jupyter.py", line 360, in run_code
    display_mime(content['data'])
  File "/usr/local/sage/local/lib/python3.8/site-packages/smc_sagews/sage_jupyter.py", line 292, in display_mime
    show(msg_data['text/latex'])
KeyError: 'text/latex'

Either the example code is no longer valid, or is there a bug in sage/cocalc, it seems.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions