diff --git a/index.html b/index.html index 8d40154..c8756c0 100644 --- a/index.html +++ b/index.html @@ -260,7 +260,7 @@ await restart(); } - async insertHtml(htmlSrc, width = "50%", height = "400px") { + async insertHtml(htmlSrc, width = "100%", height = "400px") { const term = window.term; const encoded = encodeURIComponent(htmlSrc); const iframe = document.createElement("iframe"); diff --git a/python-editor.imjoy.html b/python-editor.imjoy.html new file mode 100644 index 0000000..5561809 --- /dev/null +++ b/python-editor.imjoy.html @@ -0,0 +1,113 @@ + +{ + "name": "PyEditor", + "type": "web-worker", + "tags": [], + "ui": "", + "version": "0.1.2", + "cover": "", + "description": "A Script Editor for Python", + "icon": "extension", + "inputs": null, + "outputs": null, + "api_version": "0.1.8", + "env": "", + "permissions": [], + "requirements": [], + "dependencies": [] +} + + + \ No newline at end of file diff --git a/test_matplotlib.py b/test_matplotlib.py index fb80bb5..71dd1f9 100644 --- a/test_matplotlib.py +++ b/test_matplotlib.py @@ -8,7 +8,7 @@ Z = np.sin(np.sqrt(X**2 + Y**2)) # Create the plot -plt.figure(figsize=(10, 8)) +plt.figure(figsize=(5, 4)) plt.contourf(X, Y, Z, cmap='viridis') plt.colorbar()