Javascript Error: element.text is not a function

Hi there! I’m running into this error:

%%js
const a = 1;
const b = 2;
const c = a + b;
element.text(c);

Javascript Error: element.text is not a function

I saw a 2020 identical topic but no response back then…

hoping I’ll be luckier! thaaannnks :wink:

@slimUp which Jupyter user interface are you using (JupyterLab / Notebook)? And which version?

hey @jtp thanks for helping me!
I’m using Jupyter Notebook - Version: 7.0.0 :+1:
with miniconda on linux

Looks like using element.textContent = c would work otherwise?

1 Like

yes it does! Thank you so very much @jtp !

1 Like