3

Is there a javascript library or HTML plugin that allows me to use python graphics in an HTML page? Perhaps an object tag or 3rd party library/plugin?
Note: I want only client side code. I am not using servers.

EDIT: The library for graphics I want is python turtle. I want to be able to draw with python turtle in the browser.

3 Answers 3

1

You can look at http://www.skulpt.org/ Skulpt is JavaScript based implementation of Python. The good thing is that it is open source so you can download the source code and implement the Skulpt API in your project or HTML file.

Not only it has Turtle module but it also offers other modules like processing, math and random module.

Sign up to request clarification or add additional context in comments.

Comments

1

MPLD3 is matplotlib with D3 backend. From its web page,

The mpld3 project brings together Matplotlib, the popular Python-based graphing library, and D3js, the popular Javascript library for creating interactive data visualizations for the web. The result is a simple API for exporting your matplotlib graphics to HTML code which can be used within the browser, within standard web pages, blogs, or tools such as the IPython notebook.

Comments

0

I am not quite sure this is what you asked for, but have you heard of ipython notebooks?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.