An easily executable Panel
and Pyscript
based interactive simulation of Equivalent Circuit 'R0-p(R1,C1)' targeted towards 'Electrochemistry' learners. The simulation itself is a .html
file, and can be opened in any browser without need for installation of new python environments or special python package installation on the device.
-
For offline users, download the
src
folder, the files within it andpyscript-local-equivalent_circuit.html
file. Openpyscript-local-equivalent_circuit.html
and enjoy learning! -
For online users, download the
pyscript-remote-equivalent_circuit.html
file. Openpyscript-remote-equivalent_circuit.html
and enjoy learning!
Code in the script-equivalent_circuit.py
is first made with the help of jupyter notebook
. The script-equivalent_circuit.py
is then transformed to .html
file using panel convert script-equivalent_circuit.py --to pyscript --out
. This creates a script-equivalent_circuit.html
file in the pyscript folder (renamed to pyscript-remote-equivalent_circuit.html
).
However, this pyscript-remote-equivalent_circuit.html
uses .js
files from internet for the .html
file execution. This is corrected for by downloading and storing the .js
files in a folder called src
, and the raw pyscript-remote-equivalent_circuit.html
is edited manually in a script editor to use locally stored .js
files from src
folder. The file that works without internet is pyscript-local-equivalent_circuit.html
.
[1] T.F. Fuller, J.N. Harb, Electrochemical Engineering, John Wiley & Sons, Hoboken, 2018.
[2] Electrochemical Impedance Spectroscopy and its Applications, A. Lasia, Springer 2014
[3] Electrochemical Impedance Spectroscopy, M.E. Orazem, B. Tribollet, John Wiley & Sons, Inc., 2008
[4] impedance.py (a Python package for simulation and fitting of impedance data)