app.py
CHANGED
|
@@ -152,14 +152,12 @@ except ImportError:
|
|
| 152 |
from io import StringIO
|
| 153 |
|
| 154 |
output = StringIO()
|
| 155 |
-
display_mol = (atoms+dcmol).write(output, format="html")
|
| 156 |
-
data = display_mol.getvalue()
|
| 157 |
|
| 158 |
-
|
| 159 |
|
| 160 |
-
|
| 161 |
|
|
|
|
| 162 |
|
| 163 |
-
|
| 164 |
-
st.write(x, 'squared is', x * x)
|
| 165 |
|
|
|
|
| 152 |
from io import StringIO
|
| 153 |
|
| 154 |
output = StringIO()
|
|
|
|
|
|
|
| 155 |
|
| 156 |
+
(atoms+dcmol).write(output, format="html")
|
| 157 |
|
| 158 |
+
data = output.getvalue()
|
| 159 |
|
| 160 |
+
st.write(type(data))
|
| 161 |
|
| 162 |
+
st.html(data)
|
|
|
|
| 163 |
|