我不明白为什么 pylint 需要大约 5 分钟来检查我的代码,而 pep8 只需要 1 秒。
我使用 Mac 并且我已经pylint 1.8.4
通过conda install -c conda-forge pylint
. 无论我使用终端还是Spyder编辑器,Pylint 都很慢。我尝试创建一个配置文件,.pylintrc
但它对速度没有影响。
如何加快 Pylint 速度?谢谢你。
我想在地图上形象化加拿大商店的策略。我已经为美国商店做到了。我只想将其复制到加拿大。我认为location mode
,scope
并且projection
应该改变,但我不知道具有哪个价值。我将不胜感激任何帮助。
def visualize_geo_store_canada(stores_info_df,
fig_name='store_strategy_Canada_map', title = 'Stores Strategy'):
data = [ dict(
type = 'scattergeo',
##### WHAT TO REPLACE? ########
#locationmode = 'USA-states',
###############################
lon = stores_info_df['LONGITUDE'],
lat = stores_info_df['LATITUDE'],
text = stores_info_df['STRATEGY'],
mode = 'markers',
marker = dict(
colorscale= 'Jet',
color = stores_info_df['STRATEGY'],
colorbar = dict(
title = 'Strategy',
titleside = 'top',
tickmode = 'array',
)
))]
layout = dict(
title = title,
geo = dict(
##### WHAT TO REPLACE? ########
#scope='usa', …
Run Code Online (Sandbox Code Playgroud) 如何更改iPython Notebook中特定单元格的背景颜色?例如,我正在编写一本手册,并且希望在灰色文本框中添加一些终端命令,如http://ipython.org/ipython-doc/1/interactive/nbconvert.html。