用plotly实现jupyterlab+glueviz可视化的floatview输出小部件

floatview的Python项目详细描述


floatview统计信息

Latest Release
PyPI Downloads

浮动视图

jupyterlab的floatview输出小部件和glue/iplotly的数据浏览器

安装

如果使用jupyterlab>;=1.0:

pip install floatview
jupyter labextension install @jupyter-widgets/jupyterlab-manager@1.0.1
jupyter labextension install jupyterlab-datawidgets@6.2.0
jupyter labextension install jupyterlab-plotly@1.0.0
jupyter labextension install plotlywidget@1.0.0
jupyter labextension install jupyterlab-floatview@0.2.0

旧版本:

pip install floatview==0.1.18
jupyter labextension install @jupyterlab/plotly-extension@0.18.2
jupyter labextension install plotlywidget@0.9.1
jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.38.1
jupyter labextension install jupyterlab-floatview@0.1.11

用法

floatview小部件用作上下文管理器,就像ipywidgets的输出一样 小装置。

fromfloatviewimportFloatviewfromipywidgetsimportIntSlidersc=Floatview(title='Floatview Output',mode='tab-after')sl=IntSlider(description='Some slider')withsc:display(sl)

当一个输出显示在floatview中时,允许它占用 可用的垂直空间。如果显示更多内容,则自然高度 改为使用。

gluemanagerwidget用作glue数据集的数据/可视化管理器。

fromfloatviewimportGlueManagerWidgetfrompandasimportread_csvdata=read_csv('your_data.csv',index_col=False,usecols=cols)gmw=GlueManagerWidget(data,modal=True,label="Data")

floatview

可用的可视化效果

#Histogram (supports 1 component)view=gmw.gluemanager.newView("histogram",["PULocationID"],"Histogram")

histogram

#Scatter (supports 2-n components)view=gmw.gluemanager.newView("scatter",["PULocationID","DOLocationID"],"Scatter")view=gmw.gluemanager.newView("composed_scatter",["trip_distance","payment_type",'passenger_count'],"Composed Scatter")

scatter

#ErrorBar (supports 2-n components)view=gmw.gluemanager.newView("errorbar",["trip_distance","total_amount"],"Error")view=gmw.gluemanager.newView("composed_errorbar",["trip_distance","payment_type",'passenger_count'],"Composed Error")

error

#Polynomial Fitting 2-n degree (supports n components)view=gmw.gluemanager.newView("composed_polyfit_3d",["trip_distance","total_amount"],"Polyfit");

polyfit

#scatter 3D (supports 3 components)view=gmw.gluemanager.newView("scatter3D",["trip_distance","total_amount","passenger_count"],"Scatter3D")

scatter3d

#Contours 2D (supports 2 components)view=gmw.gluemanager.newView("contour",["trip_distance","total_amount"],"Contour");

contour

#Table (supports n components)view=gmw.gluemanager.newView("table",['passenger_count','trip_distance','total_amount','payment_type'],"Table");

table

#Parallel coordinatess (supports n components)view=gmw.gluemanager.newView("parallels",['passenger_count','trip_distance','total_amount','payment_type'],"Parallels");

parallels

#Parallel categories (supports n components)view=gmw.gluemanager.newView("parallelscat",['passenger_count','trip_distance','total_amount','payment_type'],"Parallels Categ");

parallelscat

#Sankey (supports n components)view=gmw.gluemanager.newView("sankey",['passenger_count','trip_distance','total_amount','payment_type'],"Sankey");

sankey

#Sunburst (supports n components)view=gmw.gluemanager.newView("sunburst",['passenger_count','trip_distance','total_amount','payment_type'],"Sunburst");

sunburst

#Sankey Tree (supports n components)view=gmw.gluemanager.newView("sankeytree",['total_amount','payment_type','passenger_count',],"Sankey Tree");

sankeytree

#Scatter Matrix (supports n components)view=gmw.gluemanager.newView("scattermatrix",['passenger_count','trip_distance','total_amount','payment_type'],"scatter Matrix");

scattermatrix

#Correlation Matrix (supports n components)view=gmw.gluemanager.newView("corrcoef",['passenger_count','trip_distance','total_amount','payment_type'],"Correlation Matrix");

corrcoef

#Principal components (supports n components)view=gmw.gluemanager.newView("pca",['passenger_count','trip_distance','total_amount','payment_type'],"Principal components");

pca

#Network (supports 2 components)view=gmw.gluemanager.newView("network",['trip_distance','total_amount'],"Network");

network

#Image (supports 3 components)view=gmw.gluemanager.newView("image",["trip_distance","total_amount",'passenger_count'],"Image");

image

#Lines (supports n components)view=gmw.gluemanager.newView("composed_lines",["trip_distance","payment_type",'passenger_count'],"Lines");

lines

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java实现双锁并发队列   java如何更改SpringWS 2.4.4版或更高版本中maxOccurs的默认限制?   java Selenium RC如何处理动态行?   java何时引入Javac StringBuilder/StringBuffer优化?   java mediaplayer在R.raw Android上失败   java JPA2:不区分大小写,就像在任何地方匹配一样   如何从JDK15中提取java预览类文件?   java与mySQL删除查询不一致   从Shutdownow()返回的java列表<Runnable>无法转换为提交的Runnable   java如何从回调接口获取对象值?   java如何获得视图的高度,在xml中可见性和高度定义为wrap_内容?   postgresql Mybatis在启动时遇到“由以下原因引起:java.net.UnknownHostException:localhost”,为什么?   带有实例调用的方法调用的java intellij格式化程序换行   由于特定的第三方库,java Proguard产生运行时错误   动画JAVA JPanel同时滑出和滑入