{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Introduction \n", "Demonstrating widget two-way communication." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ ">> clustergrammer2 backend version 0.17.1\n" ] } ], "source": [ "import ipywidgets as widgets\n", "from clustergrammer2 import Network, CGM2, net\n", "import json\n", "import pandas as pd\n", "df = {}" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Make DataFrame" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(38, 29)" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df['clean'] = pd.read_csv('rc_two_cat_clean.csv', index_col=0)\n", "df['meta_col'] = pd.read_csv('meta_col.csv', index_col=0)\n", "df['clean'].shape" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | color | \n", "
---|---|
Cat | \n", "red | \n", "
Dog | \n", "yellow | \n", "
Shark | \n", "black | \n", "
Snake | \n", "blue | \n", "
Lizard | \n", "green | \n", "