Ask coding questions

← Back to all posts
Embedding source code and output side-by-side as HTML for Google sites
ktiwari9

I am trying to write a simple source code to plot a sinusoid as shown:

https://storage.googleapis.com/replit/images/1531987728131_01acd00dbfb6597969f3fb455ddc384a.pn

When I click Share--> Copy and past the HTML code on google sites, the output and source code are no longer aligned like in this figure. I only get the source code and python terminal underneath it.

https://storage.googleapis.com/replit/images/1531987808837_66e9f9b7084937ee6fb4201124bef3e0.pn

How can I fix this?

Voters
jcausey_astate
PaulAustin
eflow
hatemhosny
john173
Fredeids
ktiwari9
Comments
hotnewtop
dickeylth

+1, could the layout options be configurable through url params?

Fredeids

I also have this exact problem atm. Trying to fit it into a LMS