当我!pip install 'library_name'
在 kaggle 控制台中运行时,它会抛出此警告:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
after connection broken by 'NewConnectionError('
<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fc7bd22aed0>:
Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
')': /simple/pip/
Run Code Online (Sandbox Code Playgroud)
最终不安装该库。
这个警告的原因是什么以及如何解决这个问题?
因此,我创建了一个带有一些线条和一个跨度(或多个跨度)的图形。
f = figure()
f.line(x, y1, legend_label='1st set')
f.line(x, y2, legend_label='2st set')
vl = Span(location=x_point,
dimension='height',
line_dash='dotdash', line_color="black", line_alpha=0.7)
f.add_layout(vl)
Run Code Online (Sandbox Code Playgroud)
我想将跨度条目添加到图形的默认图例中。