packages = ["matplotlib", "pandas", "networkx", "scipy", "numpy"] [[fetch]] from = "https://raw.githubusercontent.com/Yoimer-Davila/reddit-communities/develop/" files = [ "py/graph.py", "py/__init__.py", "py/web.py", "py/main.py" ]
Insert a number (50 - 5000)
600PX
720PX
1080PX
1440P
4K
Select a image size
Use
Not Use
Use zoom?
Generate
from py import run_program, size_switch_option from js import addZoomToGraph from pyscript import Element async def run(): div_target = "graph" option = str(Element("size").value) enable_zoom = str(Element("zoom").value) == "use" display(run_program(int(Element("number").value), image_size=size_switch_option(option)), target=div_target, append=False) addZoomToGraph(enable_zoom)