博文

目前显示的是 八月, 2023的博文

D3blocks绘图代码——d3graph

图片
d3graph绘图代码 ! pip list ​ from d3blocks import D3Blocks d3 = D3Blocks () ​ df = d3 . import_example ( 'climate' ) ​ d3 . timeseries ( df , datetime = 'date' , dt_format = '%Y-%m-%d' , fontsize = 10 , figsize = [ 850 , 500 ]) ​ d3 = D3Blocks ( chart = 'Timeseries' , frame = False ) df = d3 . import_example ( 'climate' ) d3 . set_node_properties ( df . columns . values ) d3 . node_properties . get ( 'wind_speed' )[ 'color' ] = '#000000' d3 . set_edge_properties ( df , datetime = 'date' , dt_format = '%Y-%m-%d' ) d3 . edge_properties d3 . show ( title = 'Timeseries with adjusted configurations' ) import matplotlib . pyplot as plt plt . savefig ( 'Timeseries_plot.png' ) ​ ​ import matplotlib . pyplot as plt plt . savefig ( 'Timeseries_plot.png' ) ​ df1 = d3 . import_example ( 'energy' ) d3 . chord ( df1 ) ​ from d3blocks import D3Blocks d3 = D3Blocks () df...

安装jupyter notebook,并使用代码自动补全

图片
  安装jupyter notebook,并使用代码自动补全 anaconda安装jupyter 创建环境 conda create -n test python=3.8 激活环境 activate test 安装jupyter notebook conda install nb_conda codna list 安装代码补全依赖包 安装扩展包 pip install jupyter_contrib_nbextensions 安装贡献扩展 jupyter contrib nbextension install --user 启动jupyter jupyter notebook 启动jupyter notebook,勾选Hinterland