Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 17011

How to use int(input()) in JupyterLite / Pyodide Kernel

$
0
0

I tried running the code below in Jupyter served online:

term_no = input('Enter number of approximations to use: ')term_no = int(term_no)print(term_no)

and it returns an error TypeError: int() argument must be a string, a bytes-like object or a real number, not 'PyodideFuture'

There's no error when I run this in VS code. Is there a bug with Jupyter or should I add something extra?


Viewing all articles
Browse latest Browse all 17011

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>