EmbedCode[obj]

generates the code necessary to embed the object obj on a webpage.

EmbedCode[obj,"dest"]

generates code for an external environment or language of type "dest".

EmbedCode[obj,"dest",dir]

saves the generated code as files in the directory dir.

EmbedCode[obj,"dest",loc]

saves the generated code as a file archive in the file location loc.

Details and Options

Examples

open allclose all

Basic Examples  (4)

Create embed code for embedding on the web:

Specify the size of embedding region:

Create code for calling an API from Java:

Create code for calling a Wolfram Cloud API from Python:

Possible Issues  (1)

Language "Python" refers to Python3. Generate code for Python2:

Wolfram Research (2014), EmbedCode, Wolfram Language function, https://reference.wolfram.com/language/ref/EmbedCode.html (updated 2016).

Text

Wolfram Research (2014), EmbedCode, Wolfram Language function, https://reference.wolfram.com/language/ref/EmbedCode.html (updated 2016).

CMS

Wolfram Language. 2014. "EmbedCode." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/EmbedCode.html.

APA

Wolfram Language. (2014). EmbedCode. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EmbedCode.html

BibTeX

@misc{reference.wolfram_2024_embedcode, author="Wolfram Research", title="{EmbedCode}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/EmbedCode.html}", note=[Accessed: 23-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_embedcode, organization={Wolfram Research}, title={EmbedCode}, year={2016}, url={https://reference.wolfram.com/language/ref/EmbedCode.html}, note=[Accessed: 23-November-2024 ]}