From 9b28b05f672a3e79055c39aaabfc88be3c2b0d17 Mon Sep 17 00:00:00 2001 From: Ryo ONODERA Date: Sat, 6 Jun 2026 01:36:46 +0900 Subject: [PATCH 1/2] Fix Wavedrom in Jupyter Notebook * Use HTML tags instead of jQuery. --- pyrtl/simulation.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/pyrtl/simulation.py b/pyrtl/simulation.py index 045aa3b8..d0b5df7e 100644 --- a/pyrtl/simulation.py +++ b/pyrtl/simulation.py @@ -1775,16 +1775,12 @@ def render_trace( html_elem = HTML(htmlstring) display(html_elem) # print(htmlstring) - js_stuff = """ - $.when( - $.getScript("https://cdnjs.cloudflare.com/ajax/libs/wavedrom/1.6.2/skins/default.js"), - $.getScript("https://cdnjs.cloudflare.com/ajax/libs/wavedrom/1.6.2/wavedrom.min.js"), - $.Deferred(function( deferred ){ - $( deferred.resolve ); - })).done(function(){ - WaveDrom.ProcessAll(); - });""" - display(Javascript(js_stuff)) + html_stuff = """ + + + + """ + display(HTML(html_stuff)) else: self.render_trace_to_text( trace_list=trace_list, From 2a89bb00b5eccf631151f4014df806c75e36c02e Mon Sep 17 00:00:00 2001 From: Ryo ONODERA Date: Sat, 6 Jun 2026 01:43:06 +0900 Subject: [PATCH 2/2] Remove unused `Javascript` from import --- pyrtl/simulation.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pyrtl/simulation.py b/pyrtl/simulation.py index d0b5df7e..0b318322 100644 --- a/pyrtl/simulation.py +++ b/pyrtl/simulation.py @@ -1763,7 +1763,6 @@ def render_trace( if _currently_in_jupyter_notebook(): from IPython.display import ( HTML, - Javascript, display, )