Dear Mr. Stimberg,
I tried to follow your instruction but got the same error in the browser console:
Traceback (most recent call last):
File "/lib/python3.7/site-packages/pyodide.py", line 43, in eval_code
exec(compile(mod, '<exec>', mode='exec'), ns, ns)
File "<exec>", line 1, in <module>
File "/lib/python3.7/site-packages/brian2/__init__.py", line 37, in <module>
from pylab import *
File "/lib/python3.7/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/lib/python3.7/site-packages/matplotlib/pylab.py", line 252, in <module>
from matplotlib import cbook, mlab, pyplot as plt
File "/lib/python3.7/site-packages/matplotlib/pyplot.py", line 31, in <module>
import matplotlib.colorbar
File "/lib/python3.7/site-packages/matplotlib/colorbar.py", line 44, in <module>
import matplotlib._constrained_layout as constrained_layout
File "/lib/python3.7/site-packages/matplotlib/_constrained_layout.py", line 55, in <module>
from matplotlib.legend import Legend
File "/lib/python3.7/site-packages/matplotlib/legend.py", line 47, in <module>
from matplotlib.offsetbox import HPacker, VPacker, TextArea, DrawingArea
File "/lib/python3.7/site-packages/matplotlib/offsetbox.py", line 37, in <module>
from matplotlib.image import BboxImage
File "/lib/python3.7/site-packages/matplotlib/image.py", line 11, in <module>
from six.moves.urllib.request import urlopen
File "/lib/python3.7/site-packages/six.py", line 92, in __get__
result = self._resolve()
File "/lib/python3.7/site-packages/six.py", line 160, in _resolve
module = _import_module(self.mod)
File "/lib/python3.7/site-packages/six.py", line 82, in _import_module
__import__(name)
File "/lib/python3.7/urllib/request.py", line 88, in <module>
import http.client
File "/lib/python3.7/http/client.py", line 71, in <module>
import email.parser
File "/lib/python3.7/email/parser.py", line 12, in <module>
from email.feedparser import FeedParser, BytesFeedParser
File "/lib/python3.7/email/feedparser.py", line 27, in <module>
from email._policybase import compat32
File "/lib/python3.7/email/_policybase.py", line 7, in <module>
from email import header
File "/lib/python3.7/email/header.py", line 20, in <module>
from email import charset as _charset
File "/lib/python3.7/email/charset.py", line 18, in <module>
from email.encoders import encode_7or8bit
File "/lib/python3.7/email/encoders.py", line 16, in <module>
from quopri import encodestring as _encodestring
File "<frozen importlib._bootstrap>", line 980, in _find_and_load
File "<frozen importlib._bootstrap>", line 148, in __enter__
File "<frozen importlib._bootstrap>", line 174, in _get_module_lock
File "<frozen importlib._bootstrap>", line 59, in __init__
RecursionError: maximum recursion depth exceeded while calling a Python object
My environment: Windows 10, Chrome
I’m not sure whether it is because of compatibility between Linux and windows. I tried the same one on Windows Subsystem for Linux, still got that error. @mstimberg