Files
skywateryang ca78157807 up
2021-06-28 22:04:56 +08:00

155 lines
15 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Traceback (most recent call last):
File "c:\users\skywater\pycharmprojects\personal\demo\lib\site-packages\jupyter_cache\executors\utils.py", line 51, in single_nb_execution
executenb(
File "c:\users\skywater\pycharmprojects\personal\demo\lib\site-packages\nbclient\client.py", line 1112, in execute
return NotebookClient(nb=nb, resources=resources, km=km, **kwargs).execute()
File "c:\users\skywater\pycharmprojects\personal\demo\lib\site-packages\nbclient\util.py", line 74, in wrapped
return just_run(coro(*args, **kwargs))
File "c:\users\skywater\pycharmprojects\personal\demo\lib\site-packages\nbclient\util.py", line 53, in just_run
return loop.run_until_complete(coro)
File "C:\Users\skywater\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "c:\users\skywater\pycharmprojects\personal\demo\lib\site-packages\nbclient\client.py", line 553, in async_execute
await self.async_execute_cell(
File "c:\users\skywater\pycharmprojects\personal\demo\lib\site-packages\nbclient\client.py", line 857, in async_execute_cell
self._check_raise_for_error(cell, exec_reply)
File "c:\users\skywater\pycharmprojects\personal\demo\lib\site-packages\nbclient\client.py", line 760, in _check_raise_for_error
raise CellExecutionError.from_cell_and_msg(cell, exec_reply_content)
nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:
------------------
plt.style.use('https://raw.githubusercontent.com/datawhalechina/fantastic-matplotlib/main/file/presentation.mplstyle')
plt.plot([1,2,3,4],[2,3,4,5]);
------------------
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
~\AppData\Local\Programs\Python\Python39\lib\urllib\request.py in do_open(self, http_class, req, **http_conn_args)
 1345 try:
-> 1346 h.request(req.get_method(), req.selector, req.data, headers,
 1347 encode_chunked=req.has_header('Transfer-encoding'))
~\AppData\Local\Programs\Python\Python39\lib\http\client.py in request(self, method, url, body, headers, encode_chunked)
 1252 """Send a complete request to the server."""
-> 1253 self._send_request(method, url, body, headers, encode_chunked)
 1254 
~\AppData\Local\Programs\Python\Python39\lib\http\client.py in _send_request(self, method, url, body, headers, encode_chunked)
 1298 body = _encode(body, 'body')
-> 1299 self.endheaders(body, encode_chunked=encode_chunked)
 1300 
~\AppData\Local\Programs\Python\Python39\lib\http\client.py in endheaders(self, message_body, encode_chunked)
 1247 raise CannotSendHeader()
-> 1248 self._send_output(message_body, encode_chunked=encode_chunked)
 1249 
~\AppData\Local\Programs\Python\Python39\lib\http\client.py in _send_output(self, message_body, encode_chunked)
 1007 del self._buffer[:]
-> 1008 self.send(msg)
 1009 
~\AppData\Local\Programs\Python\Python39\lib\http\client.py in send(self, data)
 947 if self.auto_open:
--> 948 self.connect()
 949 else:
~\AppData\Local\Programs\Python\Python39\lib\http\client.py in connect(self)
 1414 
-> 1415 super().connect()
 1416 
~\AppData\Local\Programs\Python\Python39\lib\http\client.py in connect(self)
 918 """Connect to the host and port specified in __init__."""
--> 919 self.sock = self._create_connection(
 920 (self.host,self.port), self.timeout, self.source_address)
~\AppData\Local\Programs\Python\Python39\lib\socket.py in create_connection(address, timeout, source_address)
 821 err = None
--> 822 for res in getaddrinfo(host, port, 0, SOCK_STREAM):
 823 af, socktype, proto, canonname, sa = res
~\AppData\Local\Programs\Python\Python39\lib\socket.py in getaddrinfo(host, port, family, type, proto, flags)
 952 addrlist = []
--> 953 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
 954 af, socktype, proto, canonname, sa = res
gaierror: [Errno 11004] getaddrinfo failed
During handling of the above exception, another exception occurred:
URLError Traceback (most recent call last)
c:\users\skywater\pycharmprojects\personal\demo\lib\site-packages\matplotlib\style\core.py in use(style)
 114 try:
--> 115 rc = rc_params_from_file(style, use_default_template=False)
 116 _apply_style(rc)
c:\users\skywater\pycharmprojects\personal\demo\lib\site-packages\matplotlib\__init__.py in rc_params_from_file(fname, fail_on_error, use_default_template)
 797 """
--> 798 config_from_file = _rc_params_in_file(fname, fail_on_error=fail_on_error)
 799 
c:\users\skywater\pycharmprojects\personal\demo\lib\site-packages\matplotlib\__init__.py in _rc_params_in_file(fname, transform, fail_on_error)
 726 rc_temp = {}
--> 727 with _open_file_or_url(fname) as fd:
 728 try:
~\AppData\Local\Programs\Python\Python39\lib\contextlib.py in __enter__(self)
 116 try:
--> 117 return next(self.gen)
 118 except StopIteration:
c:\users\skywater\pycharmprojects\personal\demo\lib\site-packages\matplotlib\__init__.py in _open_file_or_url(fname)
 697 )
--> 698 with urllib.request.urlopen(fname, context=ssl_ctx) as f:
 699 yield (line.decode('utf-8') for line in f)
~\AppData\Local\Programs\Python\Python39\lib\urllib\request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context)
 213 opener = _opener
--> 214 return opener.open(url, data, timeout)
 215 
~\AppData\Local\Programs\Python\Python39\lib\urllib\request.py in open(self, fullurl, data, timeout)
 516 sys.audit('urllib.Request', req.full_url, req.data, req.headers, req.get_method())
--> 517 response = self._open(req, data)
 518 
~\AppData\Local\Programs\Python\Python39\lib\urllib\request.py in _open(self, req, data)
 533 protocol = req.type
--> 534 result = self._call_chain(self.handle_open, protocol, protocol +
 535 '_open', req)
~\AppData\Local\Programs\Python\Python39\lib\urllib\request.py in _call_chain(self, chain, kind, meth_name, *args)
 493 func = getattr(handler, meth_name)
--> 494 result = func(*args)
 495 if result is not None:
~\AppData\Local\Programs\Python\Python39\lib\urllib\request.py in https_open(self, req)
 1388 def https_open(self, req):
-> 1389 return self.do_open(http.client.HTTPSConnection, req,
 1390 context=self._context, check_hostname=self._check_hostname)
~\AppData\Local\Programs\Python\Python39\lib\urllib\request.py in do_open(self, http_class, req, **http_conn_args)
 1348 except OSError as err: # timeout error
-> 1349 raise URLError(err)
 1350 r = h.getresponse()
URLError: <urlopen error [Errno 11004] getaddrinfo failed>
The above exception was the direct cause of the following exception:
OSError Traceback (most recent call last)
<ipython-input-5-8ce8ec49641e> in <module>
----> 1 plt.style.use('https://raw.githubusercontent.com/datawhalechina/fantastic-matplotlib/main/file/presentation.mplstyle')
 2 plt.plot([1,2,3,4],[2,3,4,5]);
c:\users\skywater\pycharmprojects\personal\demo\lib\site-packages\matplotlib\style\core.py in use(style)
 116 _apply_style(rc)
 117 except IOError as err:
--> 118 raise IOError(
 119 "{!r} not found in the style library and input is not a "
 120 "valid URL or path; see `style.available` for list of "
OSError: 'https://raw.githubusercontent.com/datawhalechina/fantastic-matplotlib/main/file/presentation.mplstyle' not found in the style library and input is not a valid URL or path; see `style.available` for list of available styles
OSError: 'https://raw.githubusercontent.com/datawhalechina/fantastic-matplotlib/main/file/presentation.mplstyle' not found in the style library and input is not a valid URL or path; see `style.available` for list of available styles