I have a Javascript code and wanted to implement python functions using Pyscript.
Simple Example:
let's say I have a function:
<py-script>
def addOne(a):
value = int(a) + 1
return(value)
</py-script>
and say I want to use this function in javascript:
<script>
let compute = addOne(12)
</script>
The issue here is that it will say "addOne()" function is not defined. I was wondering if there was a way to use pyscript python functions inside javascript?