From bacf60b8b5d34932d34c2084b7398538c8dc8fe9 Mon Sep 17 00:00:00 2001 From: Marvin Scham Date: Tue, 23 Aug 2022 05:03:06 +0200 Subject: [PATCH] Removed console.log and accompanying dependency --- basic-example/basic-example.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/basic-example/basic-example.py b/basic-example/basic-example.py index 488f64c..b899c7e 100644 --- a/basic-example/basic-example.py +++ b/basic-example/basic-example.py @@ -1,7 +1,6 @@ from pyodide import create_proxy, to_js, open_url import d3 import json -import js url = f"https://duolingo.checksch.de/duo_user_info.json" res = open_url(url) @@ -31,7 +30,6 @@ fn = create_proxy(lambda d, *_: d["count"]) data = d3.pie().value(fn)(to_js(lang_info_prepped)) max_val = max(lang_info_prepped, key=lambda d: d["count"])["count"] color_scale = d3.scaleLinear().domain([0, max_val]).range(["#fafafa", "rebeccapurple"]) -js.console.log(to_js(max_val)) arc = ( d3.arc()