Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e022e3 commit 3eb41d7Copy full SHA for 3eb41d7
pyscriptjs/src/interpreter.ts
@@ -68,6 +68,8 @@ def format_mime(obj):
68
"""
69
Formats object using _repr_x_ methods.
70
71
+ if isinstance(obj, str):
72
+ return obj, 'text/plain'
73
74
mimebundle = eval_formatter(obj, '_repr_mimebundle_')
75
if isinstance(mimebundle, tuple):
pyscriptjs/src/pyscript.py
@@ -59,6 +59,8 @@ def format_mime(obj):
59
60
61
62
63
64
65
66
0 commit comments