Package: upsetjs-jupyter-widget
UpSet.js Jupyter WidgetA Jupyter Widget Library aroundUpSet.js.This package is part of the UpSet.js ecosystem located at the mainGithub Monorepo.InstallationYou can install usingpip:# some ipywidget 8.x.x alpha vesionpipinstallipywidgetsupsetjs_jupyter_widget# for notebooksjupyternbextensionenable--sys-prefix--pyupsetjs_jupyter_widget# for labjupyterlabextensioninstall@jupyter-widgets/jupyterlab-managerupsetjs_jupyter_widgetUsagefromipywidgetsimportinteractfromupsetjs_jupyter_widgetimportUpSetJSWidgetimportpandasaspdw=UpSetJSWidget[str]()w.from_dict(dict(one=['a','b','c','e','g','h','k','l','m'],two=['a','b','d','e','j'],three=['a','e','f','g','h','i','j','l','m']))wdf=pd.DataFrame(dict(one=[1,1,1,0,1,0,1,1,0,0,1,1,1],two=[1,1,0,1,1,0,0,0,0,1,0,0,0],three=[1,0,0,0,1,1,1,1,1,1,0,1,1]),index=['a','b','c','d','e','f','g','h','i','j','k','l','m'])w.from_dataframe(df)wit support theipywidgetinteract method to get notified about the user inputdefselection_changed(s):returns.nameifselseNoneinteract(selection_changed,s=w)see alsointroduction.ipynbsee alsoDocumentationthe package documentation is located at. An introduction Jupyter Notebooks is at.Venn DiagramBesides the main UpSet.js plot also Venn Diagrams for up to five sets are supported. It uses the same input formats and has similar functionality in terms of interaction.fromupsetjs_jupyter_widgetimportUpSetJSVennDiagramWidgetv=UpSetJSVennDiagramWidget[str]()v.from_dict(dict(one=['a','b','c','e','g','h','k','l','m'],two=['a','b','d','e','j'],three=['a','e','f','g','h','i','j','l','m']))vsee alsovenn.ipynbKarnaugh MapBesides the main UpSet.js plot also a variant of a Karnaugh Map. It uses the same input formats and has similar functionality in terms of interaction.fromupsetjs_jupyter_widgetimportUpSetJSKarnaughMapWidgetv=UpSetJSKarnaughMapWidget[str]()v.from_dict(dict(one=['a','b','c','e','g','h','k','l','m'],two=['a','b','d','e','j'],three=['a','e','f','g','h','i','j','l','m']))vsee alsokmap.ipynbDev Environmentnpmi-gyarn
yarnsetversionberry
yarn
yarnpnpify--sdkvscode
condacreate-fenvironment.ymlcondaactivateupsetjs_jupyter_widget
pipinstall-e.
jupyternbextensioninstall--sys-prefix--overwrite--pyupsetjs_jupyter_widget
jupyternbextensionenable--sys-prefix--pyupsetjs_jupyter_widget
jupyterlabextensioninstall@jupyter-widgets/jupyterlab-manager.Commandsyarntestyarnlint
yarnbuild!!withinthepipenvPrivacy PolicyUpSet.js is a client only library. The library or any of its integrations doesn't track you or transfers your data to any server. The uploaded data in the app are stored in your browser only using IndexedDB. The Tableau extension can run in a sandbox environment prohibiting any server requests. However, as soon as you export your session within the app to an external service (e.g., Codepen.io) your data will be transferred.License / Terms of ServiceCommercial licenseIf you want to use Upset.js for a commercial application the commercial license is the appropriate license. Contact@sgratzlfor details.Open-source licenseThis library is released under theGNU AGPLv3version to be used for private and academic purposes. In case of a commercial use, please get in touch regarding a commercial license.