Skip to content

Commit

Permalink
chore: updated notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
kirangadhave committed Dec 20, 2023
1 parent 03bb181 commit e71c193
Show file tree
Hide file tree
Showing 11 changed files with 12,812 additions and 967 deletions.
1,093 changes: 136 additions & 957 deletions examples/Altair_Example_Gallery.ipynb

Large diffs are not rendered by default.

28 changes: 19 additions & 9 deletions examples/test_ext_widget.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -160,38 +160,48 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 5,
"id": "621bf69a-bb31-407f-ab20-e75792f3e61d",
"metadata": {
"__GENERATED_DATAFRAMES__": "ᯢ粠 ",
"__GENERATED_DATAFRAMES__": "ᯡࠣ䅬Ԁ朤壠ᜣ琢〹夡゠⹰〮⁁䁻қ䚾ኊ㇠നСࠩ瀮晼Ƭ穅5愠៤⠠ ",
"__has_persist_output": true,
"trrack_graph": "ᯡ࠽䈌ʀ匦㢠⹰ৠܡⰠ〸挼倶䀻CᑤƄ唠晢ȸ畀ᧁ⠧ゑ䍪త憯抣ैkᑄᄉ夐ࢷዃ⽩嗛᜾㺣䍤ð䀡塕ᆨ㵀ॢȠநƸŽᢀ眰䅽忒Π˼リ$熒‣㐡㨦䍇ᦲଠ探ࢁ壡‡犀␠⌧ିᇦ䙆ዲ䮈ؠ嬸ඣ౤æҡ哻䑀妨䢣⥕䀺慰戩瞤∡㸦ƶ䬳ۡǵण䍔愊㘠传ϒ緯澣潸䎪川ฬ玄ࡄ婲䭢䕆撶䤩⑸柢║ᾣ䡢ᆣ∰慈㲪ԡ惐ٌǦ磶䷔䒱䁲斨撫ౠ⃕䜁䥐属ѣ၈㞪䣦ヸ乗௠ࢤᅗ䎠ż䄰䤎狩墥༼凰䔕ᒵ偳㨰҄ "
"trrack_graph": "ᯡ࠽䈌ʀ匦㢠⹰ৠጡಈΠ⍿〶䀹䔬㈰֦æ9܉┠沤і枅ǹ㣽仧加㌲⠠䭈⑁棑瀱ፁ⵾凓᭮溜ʦ䒠ǁ#㞋䌸晠ኤРᝣၐüムṁǟ㤆䀥䉸攠ʓ㥀ǔ⃤vൎ厰䶩⇁ⅱ偸ౢᠬᕇከ⑇䛡炠Ɣ䛦ᜫሽࣦ䨾揑䅠Ȅ恨ాᴺᩛ寭䚮䒁డ㙐㮖㢨ᶬडᯐ䡣嬱戅ၼⶠ᫤㻬೸䚴Ɯ䛛؂㬭໡˖宧䳡✌¾'Ї忶䧒碠䯚ᶼ癅䲡Ä᤭ˣₘ⡅ڠ偰ɔ╤偸屁ມࣸ兌Ꮶ悈䰽Ϥ䲬枻渨㒺၁浪ᢂ㣀䂲⑲㒦⇡燒岲⁵戨ከᘬ礉碱ӭ▁噶⎷擙≯ᱴ㥬獐ሠĤ偈 ⌠怠㮦卤㒀Y䈬ड़᪠ᲣÖᱵ㿣瑔䶆澠ሪ䋫⑸䃠ќㄯ䑀壸ଦ䋀ぐ扦䌊ࡰᴦ䊢Ϝࢻكࢅᆥ痹尾ⲳǣ灤⤼䋂栬ጵ䄁㣜㼰☱䒕ՙ厈㩽཯囡僌┴㜺♀䳮㒊ᘾ嫣ィ㛛㻦癛⛡᧢狘๦ᰪ↠ÂᔍÙˀࡂ爠ż怽愍᷽ۧ嘎碠᧛ῠԢᅰȢ磩ℷ哣⁝槦俣အ瓄䰑 壧湷䃲㑮䨂刦਑㺾ฐ繠✕纾ဓɦЫŒԡ䁈劢悴ᩖႴവ灰ധ⌌ࣗ⬌֠悴ᩁあᢧ䙐⸩䤌ᵴ㡈䀗乣引ȏά硼㩢⹔ᨗƮ哶䆕ٮ㪾̢劧඄籔ᰅ紎ૡ䃉口䢙兤ᙊӗ⤅䭢囚ᛑ䅆૆ȸ᪒穞俳⊡塕܁伲䙑乐♜॑♳r䓾壁㤡䡑ؤ㏬䘬߯䙩΅⛉䋃ᣵᏣ⪺孳櫯䆂Ⲷ䕰娺仠䄚䅯᩶䛲ᢖ子䇦噩㪡уыР恈ޡ灌ᶧと䏗㉴ጰヸᴠ僱ᜢ䂚̠惱ٖ⦋͗㫹䡰㉂奃ଉፇ㉲但牥Ӈ噐ჵ㓫Ꮖ瓝ത倣ޡ⃱ᯐ䱳ῗ墣䦃滃岓汇䔅串ᴄ峷ᖂ⹋嶖Ⴛ嬅ç䜂ᢧ刽ⳇ开庄叡店匨㹋ѩ¨⌆⅟侬屣倓䂲ⲳ⍢♥攢㤄掂➫授㾪ⲟ劽㶄笨昌␦㻏䘧㹘溻壈␧∂㠪̌搧円ډ䁤ቖ恛ⴡ٢ޢ䫽ᜥ႔ᮧじળ⦞ఁ粟໡榚❗䤙䥢ᛊᓐ栵学嚚౦亵ᗦʈ᪗㖽㯍疤Έ⡣ㅅඤ᲌䷢᪍䶔᥯狲२畽⟋甽⁝㉃⸱ܳ⪉䶓ⅳ◪半櫚䍱㎀ደb⋄喵䡖♺歶櫘筤ǵ⡑嗚ᛒᐂర兆䈫地∶઀䒠ウ㰻冒ᐡ䢴דᥗ❌᠚㝊ᖦ≋日壡ᙆ擗恖Ꮩ宽㛫噰⻤Ƭߏ嫬柏ᜮ⌽甌俊㮝㧿瘎时£り㋣㖦༎⠄ïኰ䅀ࣨ੕繒㒜⺏ɸ毬䡠ⲥ倒ᦸ͓௡彡Ⴖ㌉曼悤灟䷟ၻ缦ফ㥔砱π㽢Ⴌ≀᰺Ⴎ䪡䠲ጀࢢౢɚ䧃䁡䒸ᠹ渕價㒩嬉ี春L攬Ⲋٹᨲ墔ۓ琫姹ሡࢉ挎ἄℝ桜核㷐ᒚ቎o㹢伾各䤫໭榠橏屸™剖䜈礑恣຾崄呒}奸峰⢒ⴠ̪⯉⣗ⶔ唦独灮⪍泴Ấǻ᳡⡡ਰഡ࠾勀丈䠸චᐰᣔ⼰〽,ṫ⚋掾泥瘩氍绰㕳塚䎶㩧㊴ᶃ劌䐦㫍䦔⍮䅑Ἂ筈ŝ㳠ै㝸ⶠ纳䜭俷瘇:湐ᢎⰖ溟琦Ϥ㴓ᒐ䮡ౠ㌑䂃⋃प䂼ඡ㺉簨ᾬ㟵ϰⶹ⼯䞀䰮捣䡁䐼ⅸ▘栤↾⃰栺ၑ⸣ઈ䆁ฯ⁙̡⢨⃇喨恔≬⪳吣ヲ⎍剢ῄ≒涬䉦淙䣨揖夥஖␩⃳䌲〮ኒᅇኅ˄䋐撨囩ᨫ䨙ᶠ䅬搑ゴቲ⟐੫䙔䣅ⲳ䃴垳㴮䭲嗦㰯䙴⻠橘Ð䷤ᰨ൵෻᧥㋂⸤⟚ѡx↠尦䄌༲昲䆨ઠ剐椈䢁傂ج瞴᣾䚡制㲶尰Ⲏ጗ڭ墼䇱墧儦Ỡ䙈↗䤉ᩞ答䮀嶆ˠ⨅榯▜絕琦㼘✷森ఒ渥侞㗣᥻䄭䭚ಶ⹕䢠⠮⍍䢡ᶱ䛰Ꮼ⌢żऄᦡ᫝㕕᛼࡙岈ↈ⨣杆∅㎑⹯ᩖ喎ଧ伶⯪႔j᜵ᄈ䞡⋔⏀㩀人ේ⠩欇ϡ儩Ɒ௖䓗ৼ耄㲬าᩣ⚻味䷘Ⳡᶡ䙎矖畣囝䷆ⷶ䊗ઈ䁧㪿䄖䗏ু⸦ҝ掠㼠Ě囲Ⅎ沌〸ၠ佹↟ܻ⧖ࢫ㉒焳㚆ⵂ໪昄⋂ᒂͤ㔃⪭⫵Უ喚廕ۏ࠲㓵扎z繅䝳র汙嗺哠Ҁ橧墬䵹垱瓴冷ཪဠêॹ㣭Ljⴸ၄ࣱ縦倠Ԡˈ磪匵⥱䦵†䨰䪎໸啰哵䫕哀ᜠ⸩哸主ઌİਮ␌ߊ庾᧬୦㩒∴拵ӯ҅ᐄ╌囪倣䭒㷓㥭ᘒ俌㓳吭㺮䁟᪝査叆ɔ廍稬夆೘浘熻ᥩ嵓⃶㏳⾑翖㗌栧曃滹げⵗ墛濘ⰿ㑁缽~䡄ḩ۬朡ლ䰛畊Ⴚ桀Lj̰㭻ᤁᴳ㾢甝䷦#椁禕㧠瀯怤≤⊻ᑃ䛝ᠻ㵧墣ཏ礚汯娻㛕᳹ⳬ㇙⛿㧂洛⫎ᇉ㴁番Ϧቁ≽ᝰ則漟ᝢ叿dᜢ✚䪉ᐿ䌓㑒ㄽ㛆╃盲攄㧹儖ᙀଦ乽ῳᓤ⁦㕠⚌柡㋭䍊რⶾ࠺߅ᤣޑܯళ⮬瓮ᠪᲰᩙ姬˧⹟亐೘䚴屐ቯᔜ䶪缻窭⟋ᠢᣲ唁㋌ኋ姲㔛㥤溵怶Ҥ™໔٤䝨䁎ᦥⱲ夈䙭悖囧᭴珊在㢞䞕㽴倱༺椿᪮᫕×畭ዲ᝾䖤ࢁ䎅砮㨮䛁䶭4䮟⢺千絳㰸䀯窆倗䎓杹⒀⭥呷愿㟙拖༟犞砋绰౻㋻࿝呬╴ᇷ㘧䮅㗾䨋ầ䅯尻侑皤㯘怖㸧珠ࢌ盾㞐䳏Ϟ倝婣匢㯌⨱儧⑮熁墥㞀ᨺ囗⯴ㆣ⸐᭟᛹ⵀ䶊淉媸᯷⟂㝟䓪⑉䯦妣㸫琲⥧Ŏ㜲劜ጪɚر㘯绩䩨巐她ખᭊ眉⏡厬⹅獴硔応熀␥㨿䡠ၚỊ疑揇䁿楎砓僇緈พ瞵習尠ᛎᐦ掠嗘柦հ玦淤慆\"䯐͑◥⸼؀╬㋅垕ᡘ᡽ᅂ啬±ਠ䦪敳ᰈ䪡䐡噤䎱ᣐጃ⁡䇱ਰ瓉坆爃䃭焄❤㢳峭⤍㌬㥳廬൉㝀娿ᵁ浢祺䆿ߑ懄瞞䡌䙕࿪ᦘ歅䯼䃣瞔姆忼ᧈ奀竌䑜禁夢櫾ɝ棥ྚ椇䵜㘌䆌筗䛜‚㭒ט⼥㝂孂ଽ䂕㤅冝௒Ꮼ倡䂗፰ᝬᰮ啴䋽ઔ䤧䑜懲勜吏⚁ㄎ宍‡䃈䨰⚀支嵧߄㤔羪㶓毷幵ᐊ⬬䒇刔㖀烚塕䧌㪫絔ɘᯌᘥn姕䯂㈫䣡嫬Ҍ掍グm刴厀٨䐄㷁┤㡝嬴⛃┰伿氞仝琉炀᪡䈐ጹ筸⨨䳸٪ᅋ㉿唴䢂ݛ禂嵉堭ᲊٰᚣȨ…ѐ᝴ⰸ䩯᭰΢尹Ѽ⌠␠眰礚ߊ䘃䰷喗䟐㡑弳悺㧘䦜ഁ呆㡩䳘䪊杒ة䮼㴊卺厤䊣媉࠶͢ݤ㫠恨愲ᝀ⯁恤֢㸄罢態倲䇭䕃ၰן䐝㌍å㦕ร⬄¹ٖ๣ⵉќ䣂Ǽ㵍இ㪈㗽娲好ڛ劄ز䵃؛䁜昼妀笠䫢戎šጌ嬄㈇侟Ҟ䰕⬼佸ቘ㑁☎伪夷䳲筁㔇غ⃝柄澝▷卂䄲璾梘㶂➈ই⊚㫝າᘺ字ᝅ〠⓯ᨢ䖠㞎恚˒䌀栦䑵エѡ浩畎μ᫂濋⣷ބ㣂炲弲ㅾᾝ牭弹˕徝ḥ䆊ℿ䰌烈㣤⧡䀼堆䖄᪣弝梂䂉恦⢲栢⓮勒彀ᒹ申⡦͸ᜧ⒬䦨٘㈣泡Ȗ⅄ξ⓪Ⴎ㪳掸䦈䏲⻐☧丹ˀ㎑ʋ䣩ᫎᾑ䄥ቶ㢾ⴒ漬⃞㪰㶼䫁溟䞸ᮡ噃⅚Ðᘡ↧⁔₹傜⇣᪋୤Ց楌桦⛺叠·⃇䜢⦢漶惯䙢㰴㼿斆爏૽䆎䡍ॢഡ⊵கզ剳熆眽қ䊄濦䭏燬䭌姀ļ橃଑媹Ƃ娊㋲⸻Ἷ֚⡓Ḵ࣯Θ⁓硄೶硫᪵፯䑭旐䔙γ敶ڨᆠ৭╉桢Ѡ┦䣅䛍䡂禰᣶剾⶜஋㓅姉䀑攴紾ᘠ䬕穹扣៾卜♺Ⅶ䖠Ọ㈨殆寔㚰㶃森䔤ῂ⊉孡䞊ᥱ⎂⑱䞬ⶁཅᣑ䚾㝫猺匌杌㣲䨃瓳ᖌⰭ㬽՚搼☬羂㢴⩁堽㠉䖐㯅ᝅ㜼粴⌰ฒᾲ偼䤞⥄㑄ᡆფᠪ᥅⍰↸兒〢紒嘰ḓᾰ⊏晄ᛋ羰櫀ᖚ᧊ケ䨢摂㉬㹂䓊燂㍰ᢻ机倫廈䌌湷≰₅ຄ湙朲㆒撴Ჵ敲ⲓ㒹峉摻徲ߨᔇ䯀ԡ㡻椸姝ੲ⍃ᓲᓅ寽હ⋬堬孍㑻䭜檬ㆫ䗀烛⛚㵜⬰䫒⃚㖪䆽㒿ӣ㪝䙿ڧ❯䋜ᙰ浠杯宪渇甈ᐑ⿣各ዋ掸ᯘᤊٶך䔱Ⴈ悂䅂ҩ噊≬¨ԡ栥䴔笆⎂㓠⳧ˏ䱜▵彵唏䷈簁待䂠ጄ㖱΃箝䇓栍䪤ᤣ䜜ᣊ䍻ၣ媈㒥䙻Άं䣏͠㭿崴⢍岺ʾ㰫晍渧⯈嫥ᩇㅗ⡘劙么㡀 "
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "015a8b480aa64a52b8cecae352b4e0b1",
"model_id": "0c2081f559bc4f22a52a663ab65fb0ee",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"PersistWidget(data_values=[{'__id_column': '1', 'Name': 'chevrolet chevelle malibu', 'Miles_per_Gallon': 18.0,…"
]
},
"execution_count": 3,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"c = alt.Chart(cars).mark_point().encode(\n",
"sel = alt.selection_interval(name=\"sel\", encodings=[\"x\"])\n",
"\n",
"c = alt.Chart().mark_point().encode(\n",
" x=\"Miles_per_Gallon:Q\",\n",
" y=\"Cylinders:Q\",\n",
" tooltip=[\"year(Year):N\"]\n",
" y=\"Weight_in_lbs:Q\",\n",
" color=\"Origin:N\",\n",
" opacity=alt.condition(sel, alt.value(0.7), alt.value(0.2))\n",
")\n",
"\n",
"PR.PersistChart(c)"
"b = alt.Chart().mark_bar().encode(\n",
" x=\"Origin:N\",\n",
" y=\"count()\",\n",
" color=\"Origin:N\",\n",
" opacity=alt.condition(sel, alt.value(1), alt.value(0.2))\n",
").add_params(sel)\n",
"\n",
"PR.PersistChart(alt.hconcat(c, b).properties(data=cars))"
]
},
{
Expand Down
Loading

0 comments on commit e71c193

Please sign in to comment.