index.html 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700
  1. <!doctype html>
  2. <html lang="en" class="no-js">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <link rel="shortcut icon" href="../../assets/images/favicon.png">
  7. <meta name="generator" content="mkdocs-1.1.2, mkdocs-material-5.5.3">
  8. <title>Gallery - Jypyter Sketcher</title>
  9. <link rel="stylesheet" href="../../assets/stylesheets/main.947af8d5.min.css">
  10. <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
  11. <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700%7CRoboto+Mono&display=fallback">
  12. <style>body,input{font-family:"Roboto",-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono",SFMono-Regular,Consolas,Menlo,monospace}</style>
  13. </head>
  14. <body dir="ltr">
  15. <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
  16. <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
  17. <label class="md-overlay" for="__drawer"></label>
  18. <div data-md-component="skip">
  19. <a href="#gallery" class="md-skip">
  20. Skip to content
  21. </a>
  22. </div>
  23. <div data-md-component="announce">
  24. </div>
  25. <header class="md-header" data-md-component="header">
  26. <nav class="md-header-nav md-grid" aria-label="Header">
  27. <a href="../.." title="Jypyter Sketcher" class="md-header-nav__button md-logo" aria-label="Jypyter Sketcher">
  28. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 003-3 3 3 0 00-3-3 3 3 0 00-3 3 3 3 0 003 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54z"/></svg>
  29. </a>
  30. <label class="md-header-nav__button md-icon" for="__drawer">
  31. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
  32. </label>
  33. <div class="md-header-nav__title" data-md-component="header-title">
  34. <div class="md-header-nav__ellipsis">
  35. <span class="md-header-nav__topic md-ellipsis">
  36. Jypyter Sketcher
  37. </span>
  38. <span class="md-header-nav__topic md-ellipsis">
  39. Gallery
  40. </span>
  41. </div>
  42. </div>
  43. <label class="md-header-nav__button md-icon" for="__search">
  44. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
  45. </label>
  46. <div class="md-search" data-md-component="search" role="dialog">
  47. <label class="md-search__overlay" for="__search"></label>
  48. <div class="md-search__inner" role="search">
  49. <form class="md-search__form" name="search">
  50. <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active">
  51. <label class="md-search__icon md-icon" for="__search">
  52. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
  53. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
  54. </label>
  55. <button type="reset" class="md-search__icon md-icon" aria-label="Clear" data-md-component="search-reset" tabindex="-1">
  56. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
  57. </button>
  58. </form>
  59. <div class="md-search__output">
  60. <div class="md-search__scrollwrap" data-md-scrollfix>
  61. <div class="md-search-result" data-md-component="search-result">
  62. <div class="md-search-result__meta">
  63. Initializing search
  64. </div>
  65. <ol class="md-search-result__list"></ol>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </nav>
  72. </header>
  73. <div class="md-container" data-md-component="container">
  74. <main class="md-main" data-md-component="main">
  75. <div class="md-main__inner md-grid">
  76. <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
  77. <div class="md-sidebar__scrollwrap">
  78. <div class="md-sidebar__inner">
  79. <nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
  80. <label class="md-nav__title" for="__drawer">
  81. <a href="../.." title="Jypyter Sketcher" class="md-nav__button md-logo" aria-label="Jypyter Sketcher">
  82. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 003-3 3 3 0 00-3-3 3 3 0 00-3 3 3 3 0 003 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54z"/></svg>
  83. </a>
  84. Jypyter Sketcher
  85. </label>
  86. <ul class="md-nav__list" data-md-scrollfix>
  87. <li class="md-nav__item">
  88. <a href="../.." title="Home" class="md-nav__link">
  89. Home
  90. </a>
  91. </li>
  92. <li class="md-nav__item">
  93. <a href="../../about/" title="About" class="md-nav__link">
  94. About
  95. </a>
  96. </li>
  97. <li class="md-nav__item">
  98. <a href="../../presentation/" title="Presentation" class="md-nav__link">
  99. Presentation
  100. </a>
  101. </li>
  102. <li class="md-nav__item">
  103. <a href="../../learningbyexample/" title="Learning by Example" class="md-nav__link">
  104. Learning by Example
  105. </a>
  106. </li>
  107. <li class="md-nav__item">
  108. <a href="../../shapereference/" title="Shapes Reference" class="md-nav__link">
  109. Shapes Reference
  110. </a>
  111. </li>
  112. <li class="md-nav__item">
  113. <a href="../../yamlsketcher/" title="YAML files Reference" class="md-nav__link">
  114. YAML files Reference
  115. </a>
  116. </li>
  117. <li class="md-nav__item">
  118. <a href="../../gallerydoc/" title="Gallery" class="md-nav__link">
  119. Gallery
  120. </a>
  121. </li>
  122. </ul>
  123. </nav>
  124. </div>
  125. </div>
  126. </div>
  127. <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
  128. <div class="md-sidebar__scrollwrap">
  129. <div class="md-sidebar__inner">
  130. <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
  131. </nav>
  132. </div>
  133. </div>
  134. </div>
  135. <div class="md-content">
  136. <article class="md-content__inner md-typeset">
  137. <div class="notebook-content">
  138. <style type="text/css">/*!
  139. *
  140. * IPython notebook
  141. *
  142. */
  143. /* CSS font colors for translated ANSI escape sequences */
  144. /* The color values are a mix of
  145. http://www.xcolors.net/dl/baskerville-ivorylight and
  146. http://www.xcolors.net/dl/euphrasia */
  147. .ansi-black-fg {
  148. color: #3E424D;
  149. }
  150. .ansi-black-bg {
  151. background-color: #3E424D;
  152. }
  153. .ansi-black-intense-fg {
  154. color: #282C36;
  155. }
  156. .ansi-black-intense-bg {
  157. background-color: #282C36;
  158. }
  159. .ansi-red-fg {
  160. color: #E75C58;
  161. }
  162. .ansi-red-bg {
  163. background-color: #E75C58;
  164. }
  165. .ansi-red-intense-fg {
  166. color: #B22B31;
  167. }
  168. .ansi-red-intense-bg {
  169. background-color: #B22B31;
  170. }
  171. .ansi-green-fg {
  172. color: #00A250;
  173. }
  174. .ansi-green-bg {
  175. background-color: #00A250;
  176. }
  177. .ansi-green-intense-fg {
  178. color: #007427;
  179. }
  180. .ansi-green-intense-bg {
  181. background-color: #007427;
  182. }
  183. .ansi-yellow-fg {
  184. color: #DDB62B;
  185. }
  186. .ansi-yellow-bg {
  187. background-color: #DDB62B;
  188. }
  189. .ansi-yellow-intense-fg {
  190. color: #B27D12;
  191. }
  192. .ansi-yellow-intense-bg {
  193. background-color: #B27D12;
  194. }
  195. .ansi-blue-fg {
  196. color: #208FFB;
  197. }
  198. .ansi-blue-bg {
  199. background-color: #208FFB;
  200. }
  201. .ansi-blue-intense-fg {
  202. color: #0065CA;
  203. }
  204. .ansi-blue-intense-bg {
  205. background-color: #0065CA;
  206. }
  207. .ansi-magenta-fg {
  208. color: #D160C4;
  209. }
  210. .ansi-magenta-bg {
  211. background-color: #D160C4;
  212. }
  213. .ansi-magenta-intense-fg {
  214. color: #A03196;
  215. }
  216. .ansi-magenta-intense-bg {
  217. background-color: #A03196;
  218. }
  219. .ansi-cyan-fg {
  220. color: #60C6C8;
  221. }
  222. .ansi-cyan-bg {
  223. background-color: #60C6C8;
  224. }
  225. .ansi-cyan-intense-fg {
  226. color: #258F8F;
  227. }
  228. .ansi-cyan-intense-bg {
  229. background-color: #258F8F;
  230. }
  231. .ansi-white-fg {
  232. color: #C5C1B4;
  233. }
  234. .ansi-white-bg {
  235. background-color: #C5C1B4;
  236. }
  237. .ansi-white-intense-fg {
  238. color: #A1A6B2;
  239. }
  240. .ansi-white-intense-bg {
  241. background-color: #A1A6B2;
  242. }
  243. .ansi-default-inverse-fg {
  244. color: #FFFFFF;
  245. }
  246. .ansi-default-inverse-bg {
  247. background-color: #000000;
  248. }
  249. .ansi-bold {
  250. font-weight: bold;
  251. }
  252. .ansi-underline {
  253. text-decoration: underline;
  254. }
  255. /* The following styles are deprecated an will be removed in a future version */
  256. .ansibold {
  257. font-weight: bold;
  258. }
  259. .ansi-inverse {
  260. outline: 0.5px dotted;
  261. }
  262. /* use dark versions for foreground, to improve visibility */
  263. .ansiblack {
  264. color: black;
  265. }
  266. .ansired {
  267. color: darkred;
  268. }
  269. .ansigreen {
  270. color: darkgreen;
  271. }
  272. .ansiyellow {
  273. color: #c4a000;
  274. }
  275. .ansiblue {
  276. color: darkblue;
  277. }
  278. .ansipurple {
  279. color: darkviolet;
  280. }
  281. .ansicyan {
  282. color: steelblue;
  283. }
  284. .ansigray {
  285. color: gray;
  286. }
  287. /* and light for background, for the same reason */
  288. .ansibgblack {
  289. background-color: black;
  290. }
  291. .ansibgred {
  292. background-color: red;
  293. }
  294. .ansibggreen {
  295. background-color: green;
  296. }
  297. .ansibgyellow {
  298. background-color: yellow;
  299. }
  300. .ansibgblue {
  301. background-color: blue;
  302. }
  303. .ansibgpurple {
  304. background-color: magenta;
  305. }
  306. .ansibgcyan {
  307. background-color: cyan;
  308. }
  309. .ansibggray {
  310. background-color: gray;
  311. }
  312. div.cell {
  313. /* Old browsers */
  314. display: -webkit-box;
  315. -webkit-box-orient: vertical;
  316. -webkit-box-align: stretch;
  317. display: -moz-box;
  318. -moz-box-orient: vertical;
  319. -moz-box-align: stretch;
  320. display: box;
  321. box-orient: vertical;
  322. box-align: stretch;
  323. /* Modern browsers */
  324. display: flex;
  325. flex-direction: column;
  326. align-items: stretch;
  327. border-radius: 2px;
  328. box-sizing: border-box;
  329. -moz-box-sizing: border-box;
  330. -webkit-box-sizing: border-box;
  331. border-width: 1px;
  332. border-style: solid;
  333. border-color: transparent;
  334. width: 100%;
  335. padding: 5px;
  336. /* This acts as a spacer between cells, that is outside the border */
  337. margin: 0px;
  338. outline: none;
  339. position: relative;
  340. overflow: visible;
  341. }
  342. div.cell:before {
  343. position: absolute;
  344. display: block;
  345. top: -1px;
  346. left: -1px;
  347. width: 5px;
  348. height: calc(100% + 2px);
  349. content: '';
  350. background: transparent;
  351. }
  352. div.cell.jupyter-soft-selected {
  353. border-left-color: #E3F2FD;
  354. border-left-width: 1px;
  355. padding-left: 5px;
  356. border-right-color: #E3F2FD;
  357. border-right-width: 1px;
  358. background: #E3F2FD;
  359. }
  360. @media print {
  361. div.cell.jupyter-soft-selected {
  362. border-color: transparent;
  363. }
  364. }
  365. div.cell.selected,
  366. div.cell.selected.jupyter-soft-selected {
  367. border-color: #ababab;
  368. }
  369. div.cell.selected:before,
  370. div.cell.selected.jupyter-soft-selected:before {
  371. position: absolute;
  372. display: block;
  373. top: -1px;
  374. left: -1px;
  375. width: 5px;
  376. height: calc(100% + 2px);
  377. content: '';
  378. background: #42A5F5;
  379. }
  380. @media print {
  381. div.cell.selected,
  382. div.cell.selected.jupyter-soft-selected {
  383. border-color: transparent;
  384. }
  385. }
  386. .edit_mode div.cell.selected {
  387. border-color: #66BB6A;
  388. }
  389. .edit_mode div.cell.selected:before {
  390. position: absolute;
  391. display: block;
  392. top: -1px;
  393. left: -1px;
  394. width: 5px;
  395. height: calc(100% + 2px);
  396. content: '';
  397. background: #66BB6A;
  398. }
  399. @media print {
  400. .edit_mode div.cell.selected {
  401. border-color: transparent;
  402. }
  403. }
  404. .prompt {
  405. /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */
  406. min-width: 14ex;
  407. /* This padding is tuned to match the padding on the CodeMirror editor. */
  408. padding: 0.4em;
  409. margin: 0px;
  410. font-family: monospace;
  411. text-align: right;
  412. /* This has to match that of the the CodeMirror class line-height below */
  413. line-height: 1.21429em;
  414. /* Don't highlight prompt number selection */
  415. -webkit-touch-callout: none;
  416. -webkit-user-select: none;
  417. -khtml-user-select: none;
  418. -moz-user-select: none;
  419. -ms-user-select: none;
  420. user-select: none;
  421. /* Use default cursor */
  422. cursor: default;
  423. }
  424. @media (max-width: 540px) {
  425. .prompt {
  426. text-align: left;
  427. }
  428. }
  429. div.inner_cell {
  430. min-width: 0;
  431. /* Old browsers */
  432. display: -webkit-box;
  433. -webkit-box-orient: vertical;
  434. -webkit-box-align: stretch;
  435. display: -moz-box;
  436. -moz-box-orient: vertical;
  437. -moz-box-align: stretch;
  438. display: box;
  439. box-orient: vertical;
  440. box-align: stretch;
  441. /* Modern browsers */
  442. display: flex;
  443. flex-direction: column;
  444. align-items: stretch;
  445. /* Old browsers */
  446. -webkit-box-flex: 1;
  447. -moz-box-flex: 1;
  448. box-flex: 1;
  449. /* Modern browsers */
  450. flex: 1;
  451. }
  452. /* input_area and input_prompt must match in top border and margin for alignment */
  453. div.input_area {
  454. border: 1px solid #cfcfcf;
  455. border-radius: 2px;
  456. background: #f7f7f7;
  457. line-height: 1.21429em;
  458. }
  459. /* This is needed so that empty prompt areas can collapse to zero height when there
  460. is no content in the output_subarea and the prompt. The main purpose of this is
  461. to make sure that empty JavaScript output_subareas have no height. */
  462. div.prompt:empty {
  463. padding-top: 0;
  464. padding-bottom: 0;
  465. }
  466. div.unrecognized_cell {
  467. padding: 5px 5px 5px 0px;
  468. /* Old browsers */
  469. display: -webkit-box;
  470. -webkit-box-orient: horizontal;
  471. -webkit-box-align: stretch;
  472. display: -moz-box;
  473. -moz-box-orient: horizontal;
  474. -moz-box-align: stretch;
  475. display: box;
  476. box-orient: horizontal;
  477. box-align: stretch;
  478. /* Modern browsers */
  479. display: flex;
  480. flex-direction: row;
  481. align-items: stretch;
  482. }
  483. div.unrecognized_cell .inner_cell {
  484. border-radius: 2px;
  485. padding: 5px;
  486. font-weight: bold;
  487. color: red;
  488. border: 1px solid #cfcfcf;
  489. background: #eaeaea;
  490. }
  491. div.unrecognized_cell .inner_cell a {
  492. color: inherit;
  493. text-decoration: none;
  494. }
  495. div.unrecognized_cell .inner_cell a:hover {
  496. color: inherit;
  497. text-decoration: none;
  498. }
  499. @media (max-width: 540px) {
  500. div.unrecognized_cell > div.prompt {
  501. display: none;
  502. }
  503. }
  504. div.code_cell {
  505. /* avoid page breaking on code cells when printing */
  506. }
  507. @media print {
  508. div.code_cell {
  509. page-break-inside: avoid;
  510. }
  511. }
  512. /* any special styling for code cells that are currently running goes here */
  513. div.input {
  514. page-break-inside: avoid;
  515. /* Old browsers */
  516. display: -webkit-box;
  517. -webkit-box-orient: horizontal;
  518. -webkit-box-align: stretch;
  519. display: -moz-box;
  520. -moz-box-orient: horizontal;
  521. -moz-box-align: stretch;
  522. display: box;
  523. box-orient: horizontal;
  524. box-align: stretch;
  525. /* Modern browsers */
  526. display: flex;
  527. flex-direction: row;
  528. align-items: stretch;
  529. }
  530. @media (max-width: 540px) {
  531. div.input {
  532. /* Old browsers */
  533. display: -webkit-box;
  534. -webkit-box-orient: vertical;
  535. -webkit-box-align: stretch;
  536. display: -moz-box;
  537. -moz-box-orient: vertical;
  538. -moz-box-align: stretch;
  539. display: box;
  540. box-orient: vertical;
  541. box-align: stretch;
  542. /* Modern browsers */
  543. display: flex;
  544. flex-direction: column;
  545. align-items: stretch;
  546. }
  547. }
  548. /* input_area and input_prompt must match in top border and margin for alignment */
  549. div.input_prompt {
  550. color: #303F9F;
  551. border-top: 1px solid transparent;
  552. }
  553. div.input_area > div.highlight {
  554. margin: 0.4em;
  555. border: none;
  556. padding: 0px;
  557. background-color: transparent;
  558. }
  559. div.input_area > div.highlight > pre {
  560. margin: 0px;
  561. border: none;
  562. padding: 0px;
  563. background-color: transparent;
  564. }
  565. /* The following gets added to the <head> if it is detected that the user has a
  566. * monospace font with inconsistent normal/bold/italic height. See
  567. * notebookmain.js. Such fonts will have keywords vertically offset with
  568. * respect to the rest of the text. The user should select a better font.
  569. * See: https://github.com/ipython/ipython/issues/1503
  570. *
  571. * .CodeMirror span {
  572. * vertical-align: bottom;
  573. * }
  574. */
  575. .CodeMirror {
  576. line-height: 1.21429em;
  577. /* Changed from 1em to our global default */
  578. font-size: 14px;
  579. height: auto;
  580. /* Changed to auto to autogrow */
  581. background: none;
  582. /* Changed from white to allow our bg to show through */
  583. }
  584. .CodeMirror-scroll {
  585. /* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/
  586. /* We have found that if it is visible, vertical scrollbars appear with font size changes.*/
  587. overflow-y: hidden;
  588. overflow-x: auto;
  589. }
  590. .CodeMirror-lines {
  591. /* In CM2, this used to be 0.4em, but in CM3 it went to 4px. We need the em value because */
  592. /* we have set a different line-height and want this to scale with that. */
  593. /* Note that this should set vertical padding only, since CodeMirror assumes
  594. that horizontal padding will be set on CodeMirror pre */
  595. padding: 0.4em 0;
  596. }
  597. .CodeMirror-linenumber {
  598. padding: 0 8px 0 4px;
  599. }
  600. .CodeMirror-gutters {
  601. border-bottom-left-radius: 2px;
  602. border-top-left-radius: 2px;
  603. }
  604. .CodeMirror pre {
  605. /* In CM3 this went to 4px from 0 in CM2. This sets horizontal padding only,
  606. use .CodeMirror-lines for vertical */
  607. padding: 0 0.4em;
  608. border: 0;
  609. border-radius: 0;
  610. }
  611. .CodeMirror-cursor {
  612. border-left: 1.4px solid black;
  613. }
  614. @media screen and (min-width: 2138px) and (max-width: 4319px) {
  615. .CodeMirror-cursor {
  616. border-left: 2px solid black;
  617. }
  618. }
  619. @media screen and (min-width: 4320px) {
  620. .CodeMirror-cursor {
  621. border-left: 4px solid black;
  622. }
  623. }
  624. /*
  625. Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
  626. Adapted from GitHub theme
  627. */
  628. .highlight-base {
  629. color: #000;
  630. }
  631. .highlight-variable {
  632. color: #000;
  633. }
  634. .highlight-variable-2 {
  635. color: #1a1a1a;
  636. }
  637. .highlight-variable-3 {
  638. color: #333333;
  639. }
  640. .highlight-string {
  641. color: #BA2121;
  642. }
  643. .highlight-comment {
  644. color: #408080;
  645. font-style: italic;
  646. }
  647. .highlight-number {
  648. color: #080;
  649. }
  650. .highlight-atom {
  651. color: #88F;
  652. }
  653. .highlight-keyword {
  654. color: #008000;
  655. font-weight: bold;
  656. }
  657. .highlight-builtin {
  658. color: #008000;
  659. }
  660. .highlight-error {
  661. color: #f00;
  662. }
  663. .highlight-operator {
  664. color: #AA22FF;
  665. font-weight: bold;
  666. }
  667. .highlight-meta {
  668. color: #AA22FF;
  669. }
  670. /* previously not defined, copying from default codemirror */
  671. .highlight-def {
  672. color: #00f;
  673. }
  674. .highlight-string-2 {
  675. color: #f50;
  676. }
  677. .highlight-qualifier {
  678. color: #555;
  679. }
  680. .highlight-bracket {
  681. color: #997;
  682. }
  683. .highlight-tag {
  684. color: #170;
  685. }
  686. .highlight-attribute {
  687. color: #00c;
  688. }
  689. .highlight-header {
  690. color: blue;
  691. }
  692. .highlight-quote {
  693. color: #090;
  694. }
  695. .highlight-link {
  696. color: #00c;
  697. }
  698. /* apply the same style to codemirror */
  699. .cm-s-ipython span.cm-keyword {
  700. color: #008000;
  701. font-weight: bold;
  702. }
  703. .cm-s-ipython span.cm-atom {
  704. color: #88F;
  705. }
  706. .cm-s-ipython span.cm-number {
  707. color: #080;
  708. }
  709. .cm-s-ipython span.cm-def {
  710. color: #00f;
  711. }
  712. .cm-s-ipython span.cm-variable {
  713. color: #000;
  714. }
  715. .cm-s-ipython span.cm-operator {
  716. color: #AA22FF;
  717. font-weight: bold;
  718. }
  719. .cm-s-ipython span.cm-variable-2 {
  720. color: #1a1a1a;
  721. }
  722. .cm-s-ipython span.cm-variable-3 {
  723. color: #333333;
  724. }
  725. .cm-s-ipython span.cm-comment {
  726. color: #408080;
  727. font-style: italic;
  728. }
  729. .cm-s-ipython span.cm-string {
  730. color: #BA2121;
  731. }
  732. .cm-s-ipython span.cm-string-2 {
  733. color: #f50;
  734. }
  735. .cm-s-ipython span.cm-meta {
  736. color: #AA22FF;
  737. }
  738. .cm-s-ipython span.cm-qualifier {
  739. color: #555;
  740. }
  741. .cm-s-ipython span.cm-builtin {
  742. color: #008000;
  743. }
  744. .cm-s-ipython span.cm-bracket {
  745. color: #997;
  746. }
  747. .cm-s-ipython span.cm-tag {
  748. color: #170;
  749. }
  750. .cm-s-ipython span.cm-attribute {
  751. color: #00c;
  752. }
  753. .cm-s-ipython span.cm-header {
  754. color: blue;
  755. }
  756. .cm-s-ipython span.cm-quote {
  757. color: #090;
  758. }
  759. .cm-s-ipython span.cm-link {
  760. color: #00c;
  761. }
  762. .cm-s-ipython span.cm-error {
  763. color: #f00;
  764. }
  765. .cm-s-ipython span.cm-tab {
  766. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=);
  767. background-position: right;
  768. background-repeat: no-repeat;
  769. }
  770. div.output_wrapper {
  771. /* this position must be relative to enable descendents to be absolute within it */
  772. position: relative;
  773. /* Old browsers */
  774. display: -webkit-box;
  775. -webkit-box-orient: vertical;
  776. -webkit-box-align: stretch;
  777. display: -moz-box;
  778. -moz-box-orient: vertical;
  779. -moz-box-align: stretch;
  780. display: box;
  781. box-orient: vertical;
  782. box-align: stretch;
  783. /* Modern browsers */
  784. display: flex;
  785. flex-direction: column;
  786. align-items: stretch;
  787. z-index: 1;
  788. }
  789. /* class for the output area when it should be height-limited */
  790. div.output_scroll {
  791. /* ideally, this would be max-height, but FF barfs all over that */
  792. height: 24em;
  793. /* FF needs this *and the wrapper* to specify full width, or it will shrinkwrap */
  794. width: 100%;
  795. overflow: auto;
  796. border-radius: 2px;
  797. -webkit-box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
  798. box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
  799. display: block;
  800. }
  801. /* output div while it is collapsed */
  802. div.output_collapsed {
  803. margin: 0px;
  804. padding: 0px;
  805. /* Old browsers */
  806. display: -webkit-box;
  807. -webkit-box-orient: vertical;
  808. -webkit-box-align: stretch;
  809. display: -moz-box;
  810. -moz-box-orient: vertical;
  811. -moz-box-align: stretch;
  812. display: box;
  813. box-orient: vertical;
  814. box-align: stretch;
  815. /* Modern browsers */
  816. display: flex;
  817. flex-direction: column;
  818. align-items: stretch;
  819. }
  820. div.out_prompt_overlay {
  821. height: 100%;
  822. padding: 0px 0.4em;
  823. position: absolute;
  824. border-radius: 2px;
  825. }
  826. div.out_prompt_overlay:hover {
  827. /* use inner shadow to get border that is computed the same on WebKit/FF */
  828. -webkit-box-shadow: inset 0 0 1px #000;
  829. box-shadow: inset 0 0 1px #000;
  830. background: rgba(240, 240, 240, 0.5);
  831. }
  832. div.output_prompt {
  833. color: #D84315;
  834. }
  835. /* This class is the outer container of all output sections. */
  836. div.output_area {
  837. padding: 0px;
  838. page-break-inside: avoid;
  839. /* Old browsers */
  840. display: -webkit-box;
  841. -webkit-box-orient: horizontal;
  842. -webkit-box-align: stretch;
  843. display: -moz-box;
  844. -moz-box-orient: horizontal;
  845. -moz-box-align: stretch;
  846. display: box;
  847. box-orient: horizontal;
  848. box-align: stretch;
  849. /* Modern browsers */
  850. display: flex;
  851. flex-direction: row;
  852. align-items: stretch;
  853. }
  854. div.output_area .MathJax_Display {
  855. text-align: left !important;
  856. }
  857. div.output_area
  858. div.output_area
  859. div.output_area img,
  860. div.output_area svg {
  861. max-width: 100%;
  862. height: auto;
  863. }
  864. div.output_area img.unconfined,
  865. div.output_area svg.unconfined {
  866. max-width: none;
  867. }
  868. div.output_area .mglyph > img {
  869. max-width: none;
  870. }
  871. /* This is needed to protect the pre formating from global settings such
  872. as that of bootstrap */
  873. .output {
  874. /* Old browsers */
  875. display: -webkit-box;
  876. -webkit-box-orient: vertical;
  877. -webkit-box-align: stretch;
  878. display: -moz-box;
  879. -moz-box-orient: vertical;
  880. -moz-box-align: stretch;
  881. display: box;
  882. box-orient: vertical;
  883. box-align: stretch;
  884. /* Modern browsers */
  885. display: flex;
  886. flex-direction: column;
  887. align-items: stretch;
  888. }
  889. @media (max-width: 540px) {
  890. div.output_area {
  891. /* Old browsers */
  892. display: -webkit-box;
  893. -webkit-box-orient: vertical;
  894. -webkit-box-align: stretch;
  895. display: -moz-box;
  896. -moz-box-orient: vertical;
  897. -moz-box-align: stretch;
  898. display: box;
  899. box-orient: vertical;
  900. box-align: stretch;
  901. /* Modern browsers */
  902. display: flex;
  903. flex-direction: column;
  904. align-items: stretch;
  905. }
  906. }
  907. div.output_area pre {
  908. margin: 0;
  909. padding: 1px 0 1px 0;
  910. border: 0;
  911. vertical-align: baseline;
  912. color: black;
  913. background-color: transparent;
  914. border-radius: 0;
  915. }
  916. /* This class is for the output subarea inside the output_area and after
  917. the prompt div. */
  918. div.output_subarea {
  919. overflow-x: auto;
  920. padding: 0.4em;
  921. /* Old browsers */
  922. -webkit-box-flex: 1;
  923. -moz-box-flex: 1;
  924. box-flex: 1;
  925. /* Modern browsers */
  926. flex: 1;
  927. max-width: calc(100% - 14ex);
  928. }
  929. div.output_scroll div.output_subarea {
  930. overflow-x: visible;
  931. }
  932. /* The rest of the output_* classes are for special styling of the different
  933. output types */
  934. /* all text output has this class: */
  935. div.output_text {
  936. text-align: left;
  937. color: #000;
  938. /* This has to match that of the the CodeMirror class line-height below */
  939. line-height: 1.21429em;
  940. }
  941. /* stdout/stderr are 'text' as well as 'stream', but execute_result/error are *not* streams */
  942. div.output_stderr {
  943. background: #fdd;
  944. /* very light red background for stderr */
  945. }
  946. div.output_latex {
  947. text-align: left;
  948. }
  949. /* Empty output_javascript divs should have no height */
  950. div.output_javascript:empty {
  951. padding: 0;
  952. }
  953. .js-error {
  954. color: darkred;
  955. }
  956. /* raw_input styles */
  957. div.raw_input_container {
  958. line-height: 1.21429em;
  959. padding-top: 5px;
  960. }
  961. pre.raw_input_prompt {
  962. /* nothing needed here. */
  963. }
  964. input.raw_input {
  965. font-family: monospace;
  966. font-size: inherit;
  967. color: inherit;
  968. width: auto;
  969. /* make sure input baseline aligns with prompt */
  970. vertical-align: baseline;
  971. /* padding + margin = 0.5em between prompt and cursor */
  972. padding: 0em 0.25em;
  973. margin: 0em 0.25em;
  974. }
  975. input.raw_input:focus {
  976. box-shadow: none;
  977. }
  978. p.p-space {
  979. margin-bottom: 10px;
  980. }
  981. div.output_unrecognized {
  982. padding: 5px;
  983. font-weight: bold;
  984. color: red;
  985. }
  986. div.output_unrecognized a {
  987. color: inherit;
  988. text-decoration: none;
  989. }
  990. div.output_unrecognized a:hover {
  991. color: inherit;
  992. text-decoration: none;
  993. }
  994. .rendered_html {
  995. color: #000;
  996. /* any extras will just be numbers: */
  997. }
  998. .rendered_html :link {
  999. text-decoration: underline;
  1000. }
  1001. .rendered_html :visited {
  1002. text-decoration: underline;
  1003. }
  1004. .rendered_html h1:first-child {
  1005. margin-top: 0.538em;
  1006. }
  1007. .rendered_html h2:first-child {
  1008. margin-top: 0.636em;
  1009. }
  1010. .rendered_html h3:first-child {
  1011. margin-top: 0.777em;
  1012. }
  1013. .rendered_html h4:first-child {
  1014. margin-top: 1em;
  1015. }
  1016. .rendered_html h5:first-child {
  1017. margin-top: 1em;
  1018. }
  1019. .rendered_html h6:first-child {
  1020. margin-top: 1em;
  1021. }
  1022. .rendered_html ul:not(.list-inline),
  1023. .rendered_html ol:not(.list-inline) {
  1024. padding-left: 2em;
  1025. }
  1026. .rendered_html * + ul {
  1027. margin-top: 1em;
  1028. }
  1029. .rendered_html * + ol {
  1030. margin-top: 1em;
  1031. }
  1032. .rendered_html pre,
  1033. .rendered_html tr,
  1034. .rendered_html th,
  1035. .rendered_html tbody tr:nth-child(odd) {
  1036. background: #f5f5f5;
  1037. }
  1038. .rendered_html tbody tr:hover {
  1039. background: rgba(66, 165, 245, 0.2);
  1040. }
  1041. .rendered_html * + table {
  1042. margin-top: 1em;
  1043. }
  1044. .rendered_html * + p {
  1045. margin-top: 1em;
  1046. }
  1047. .rendered_html * + img {
  1048. margin-top: 1em;
  1049. }
  1050. .rendered_html img,
  1051. .rendered_html img.unconfined,
  1052. .rendered_html * + .alert {
  1053. margin-top: 1em;
  1054. }
  1055. [dir="rtl"]
  1056. div.text_cell {
  1057. /* Old browsers */
  1058. display: -webkit-box;
  1059. -webkit-box-orient: horizontal;
  1060. -webkit-box-align: stretch;
  1061. display: -moz-box;
  1062. -moz-box-orient: horizontal;
  1063. -moz-box-align: stretch;
  1064. display: box;
  1065. box-orient: horizontal;
  1066. box-align: stretch;
  1067. /* Modern browsers */
  1068. display: flex;
  1069. flex-direction: row;
  1070. align-items: stretch;
  1071. }
  1072. @media (max-width: 540px) {
  1073. div.text_cell > div.prompt {
  1074. display: none;
  1075. }
  1076. }
  1077. div.text_cell_render {
  1078. /*font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;*/
  1079. outline: none;
  1080. resize: none;
  1081. width: inherit;
  1082. border-style: none;
  1083. padding: 0.5em 0.5em 0.5em 0.4em;
  1084. color: #000;
  1085. box-sizing: border-box;
  1086. -moz-box-sizing: border-box;
  1087. -webkit-box-sizing: border-box;
  1088. }
  1089. a.anchor-link:link {
  1090. text-decoration: none;
  1091. padding: 0px 20px;
  1092. visibility: hidden;
  1093. }
  1094. h1:hover .anchor-link,
  1095. h2:hover .anchor-link,
  1096. h3:hover .anchor-link,
  1097. h4:hover .anchor-link,
  1098. h5:hover .anchor-link,
  1099. h6:hover .anchor-link {
  1100. visibility: visible;
  1101. }
  1102. .text_cell.rendered .input_area {
  1103. display: none;
  1104. }
  1105. .text_cell.rendered
  1106. .text_cell.rendered .rendered_html tr,
  1107. .text_cell.rendered .rendered_html th,
  1108. .text_cell.rendered
  1109. .text_cell.unrendered .text_cell_render {
  1110. display: none;
  1111. }
  1112. .text_cell .dropzone .input_area {
  1113. border: 2px dashed #bababa;
  1114. margin: -1px;
  1115. }
  1116. .cm-header-1,
  1117. .cm-header-2,
  1118. .cm-header-3,
  1119. .cm-header-4,
  1120. .cm-header-5,
  1121. .cm-header-6 {
  1122. font-weight: bold;
  1123. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  1124. }
  1125. .cm-header-1 {
  1126. font-size: 185.7%;
  1127. }
  1128. .cm-header-2 {
  1129. font-size: 157.1%;
  1130. }
  1131. .cm-header-3 {
  1132. font-size: 128.6%;
  1133. }
  1134. .cm-header-4 {
  1135. font-size: 110%;
  1136. }
  1137. .cm-header-5 {
  1138. font-size: 100%;
  1139. font-style: italic;
  1140. }
  1141. .cm-header-6 {
  1142. font-size: 100%;
  1143. font-style: italic;
  1144. }
  1145. </style>
  1146. <style type="text/css">.highlight-ipynb .hll { background-color: #ffffcc }
  1147. .highlight-ipynb { background: #f8f8f8; }
  1148. .highlight-ipynb .c { color: #408080; font-style: italic } /* Comment */
  1149. .highlight-ipynb .err { border: 1px solid #FF0000 } /* Error */
  1150. .highlight-ipynb .k { color: #008000; font-weight: bold } /* Keyword */
  1151. .highlight-ipynb .o { color: #666666 } /* Operator */
  1152. .highlight-ipynb .ch { color: #408080; font-style: italic } /* Comment.Hashbang */
  1153. .highlight-ipynb .cm { color: #408080; font-style: italic } /* Comment.Multiline */
  1154. .highlight-ipynb .cp { color: #BC7A00 } /* Comment.Preproc */
  1155. .highlight-ipynb .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */
  1156. .highlight-ipynb .c1 { color: #408080; font-style: italic } /* Comment.Single */
  1157. .highlight-ipynb .cs { color: #408080; font-style: italic } /* Comment.Special */
  1158. .highlight-ipynb .gd { color: #A00000 } /* Generic.Deleted */
  1159. .highlight-ipynb .ge { font-style: italic } /* Generic.Emph */
  1160. .highlight-ipynb .gr { color: #FF0000 } /* Generic.Error */
  1161. .highlight-ipynb .gh { color: #000080; font-weight: bold } /* Generic.Heading */
  1162. .highlight-ipynb .gi { color: #00A000 } /* Generic.Inserted */
  1163. .highlight-ipynb .go { color: #888888 } /* Generic.Output */
  1164. .highlight-ipynb .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
  1165. .highlight-ipynb .gs { font-weight: bold } /* Generic.Strong */
  1166. .highlight-ipynb .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
  1167. .highlight-ipynb .gt { color: #0044DD } /* Generic.Traceback */
  1168. .highlight-ipynb .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
  1169. .highlight-ipynb .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
  1170. .highlight-ipynb .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
  1171. .highlight-ipynb .kp { color: #008000 } /* Keyword.Pseudo */
  1172. .highlight-ipynb .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
  1173. .highlight-ipynb .kt { color: #B00040 } /* Keyword.Type */
  1174. .highlight-ipynb .m { color: #666666 } /* Literal.Number */
  1175. .highlight-ipynb .s { color: #BA2121 } /* Literal.String */
  1176. .highlight-ipynb .na { color: #7D9029 } /* Name.Attribute */
  1177. .highlight-ipynb .nb { color: #008000 } /* Name.Builtin */
  1178. .highlight-ipynb .nc { color: #0000FF; font-weight: bold } /* Name.Class */
  1179. .highlight-ipynb .no { color: #880000 } /* Name.Constant */
  1180. .highlight-ipynb .nd { color: #AA22FF } /* Name.Decorator */
  1181. .highlight-ipynb .ni { color: #999999; font-weight: bold } /* Name.Entity */
  1182. .highlight-ipynb .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
  1183. .highlight-ipynb .nf { color: #0000FF } /* Name.Function */
  1184. .highlight-ipynb .nl { color: #A0A000 } /* Name.Label */
  1185. .highlight-ipynb .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
  1186. .highlight-ipynb .nt { color: #008000; font-weight: bold } /* Name.Tag */
  1187. .highlight-ipynb .nv { color: #19177C } /* Name.Variable */
  1188. .highlight-ipynb .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
  1189. .highlight-ipynb .w { color: #bbbbbb } /* Text.Whitespace */
  1190. .highlight-ipynb .mb { color: #666666 } /* Literal.Number.Bin */
  1191. .highlight-ipynb .mf { color: #666666 } /* Literal.Number.Float */
  1192. .highlight-ipynb .mh { color: #666666 } /* Literal.Number.Hex */
  1193. .highlight-ipynb .mi { color: #666666 } /* Literal.Number.Integer */
  1194. .highlight-ipynb .mo { color: #666666 } /* Literal.Number.Oct */
  1195. .highlight-ipynb .sa { color: #BA2121 } /* Literal.String.Affix */
  1196. .highlight-ipynb .sb { color: #BA2121 } /* Literal.String.Backtick */
  1197. .highlight-ipynb .sc { color: #BA2121 } /* Literal.String.Char */
  1198. .highlight-ipynb .dl { color: #BA2121 } /* Literal.String.Delimiter */
  1199. .highlight-ipynb .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
  1200. .highlight-ipynb .s2 { color: #BA2121 } /* Literal.String.Double */
  1201. .highlight-ipynb .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
  1202. .highlight-ipynb .sh { color: #BA2121 } /* Literal.String.Heredoc */
  1203. .highlight-ipynb .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
  1204. .highlight-ipynb .sx { color: #008000 } /* Literal.String.Other */
  1205. .highlight-ipynb .sr { color: #BB6688 } /* Literal.String.Regex */
  1206. .highlight-ipynb .s1 { color: #BA2121 } /* Literal.String.Single */
  1207. .highlight-ipynb .ss { color: #19177C } /* Literal.String.Symbol */
  1208. .highlight-ipynb .bp { color: #008000 } /* Name.Builtin.Pseudo */
  1209. .highlight-ipynb .fm { color: #0000FF } /* Name.Function.Magic */
  1210. .highlight-ipynb .vc { color: #19177C } /* Name.Variable.Class */
  1211. .highlight-ipynb .vg { color: #19177C } /* Name.Variable.Global */
  1212. .highlight-ipynb .vi { color: #19177C } /* Name.Variable.Instance */
  1213. .highlight-ipynb .vm { color: #19177C } /* Name.Variable.Magic */
  1214. .highlight-ipynb .il { color: #666666 } /* Literal.Number.Integer.Long */</style><style type="text/css">
  1215. .rendered_html a{text-decoration:inherit !important}.rendered_html :link{text-decoration:inherit !important}.rendered_html :visited{text-decoration:inherit !important}pre code{background-color:inherit !important}.highlight{color:#000000}.highlight code{color:#000000}.highlight .n{color:#333333}.highlight .p{color:#000000}.text_cell .prompt{display:none !important}div.input_prompt{padding:0.2em 0.4em}div.output_prompt{padding:0.4em}.text_cell{margin:0 !important;padding:0 !important;border:none !important}.text_cell_render{margin:0 !important;padding:0 !important;border:none !important}.rendered_html *+p{margin-top:inherit !important}.anchor-link{display:none !important}.code_cell{margin:0 !important;padding:5px 0 !important;border:none !important}.celltoolbar{border:thin solid #CFCFCF;border-bottom:none;background:#EEE;border-radius:2px 2px 0px 0px;width:100%;height:29px;padding-right:4px;box-orient:horizontal;box-align:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;box-pack:end;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;display:-webkit-flex}.celltoolbar .tags_button_container{display:-webkit-box;display:-ms-flexbox;display:flex}.celltoolbar .tags_button_container .tag-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;position:relative}.celltoolbar .tags_button_container .tag-container .cell-tag{background-color:#fff;white-space:nowrap;margin:3px 4px;padding:0 4px;border-radius:1px;border:1px solid #ccc;-webkit-box-shadow:none;box-shadow:none;width:inherit;font-size:13px;font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;height:22px;line-height:22px;display:inline-block}div.input_area>div.highlight{margin:0.25em 0.4em !important}.code_cell pre{font-size:12px !important}.output_html table.dataframe{font-family:Arial, sans-serif;font-size:13px;line-height:20px}.output_html table.dataframe th,td{padding:4px;text-align:left}.bk-plot-wrapper tbody tr{background:none !important}.bk-plot-wrapper tbody tr:hover{background:none !important}
  1216. /*# sourceMappingURL=jupyter-fixes.min.css.map */
  1217. </style>
  1218. <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
  1219. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
  1220. <!-- Loading mathjax macro -->
  1221. <!-- Load mathjax -->
  1222. <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS_HTML"></script>
  1223. <!-- MathJax configuration -->
  1224. <script type="text/x-mathjax-config">
  1225. MathJax.Hub.Config({
  1226. tex2jax: {
  1227. inlineMath: [ ['$','$'], ["\\(","\\)"] ],
  1228. displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
  1229. processEscapes: true,
  1230. processEnvironments: true
  1231. },
  1232. // Center justify equations in code and markdown cells. Elsewhere
  1233. // we use CSS to left justify single line equations in code cells.
  1234. displayAlign: 'center',
  1235. "HTML-CSS": {
  1236. styles: {'.MathJax_Display': {"margin": 0}},
  1237. linebreaks: { automatic: true }
  1238. }
  1239. });
  1240. </script>
  1241. <!-- End of mathjax configuration -->
  1242. <div class="cell border-box-sizing text_cell rendered"><div class="prompt input_prompt">
  1243. </div><div class="inner_cell">
  1244. <div class="text_cell_render border-box-sizing rendered_html">
  1245. <h1 id="gallery">Gallery<a class="anchor-link" href="#Gallery">&#182;</a></h1>
  1246. </div>
  1247. </div>
  1248. </div>
  1249. <div class="cell border-box-sizing code_cell rendered">
  1250. <div class="input">
  1251. <div class="prompt input_prompt">In&nbsp;[1]:</div>
  1252. <div class="inner_cell">
  1253. <div class="input_area">
  1254. <div class=" highlight highlight-ipynb hl-python"><pre><span></span><span class="o">%</span><span class="n">matplotlib</span> <span class="n">widget</span>
  1255. </pre></div>
  1256. </div>
  1257. </div>
  1258. </div>
  1259. </div>
  1260. <div class="cell border-box-sizing code_cell rendered">
  1261. <div class="input">
  1262. <div class="prompt input_prompt">In&nbsp;[2]:</div>
  1263. <div class="inner_cell">
  1264. <div class="input_area">
  1265. <div class=" highlight highlight-ipynb hl-python"><pre><span></span><span class="kn">from</span> <span class="nn">ipywidgets</span> <span class="kn">import</span> <span class="n">HBox</span><span class="p">,</span> <span class="n">VBox</span><span class="p">,</span> <span class="n">Output</span><span class="p">,</span> <span class="n">Label</span>
  1266. </pre></div>
  1267. </div>
  1268. </div>
  1269. </div>
  1270. </div>
  1271. <div class="cell border-box-sizing code_cell rendered">
  1272. <div class="input">
  1273. <div class="prompt input_prompt">In&nbsp;[3]:</div>
  1274. <div class="inner_cell">
  1275. <div class="input_area">
  1276. <div class=" highlight highlight-ipynb hl-python"><pre><span></span><span class="n">url</span> <span class="o">=</span> <span class="s2">&quot;https://raw.githubusercontent.com/gbrault/jupytersketches/master/&quot;</span>
  1277. </pre></div>
  1278. </div>
  1279. </div>
  1280. </div>
  1281. </div>
  1282. <div class="cell border-box-sizing code_cell rendered">
  1283. <div class="input">
  1284. <div class="prompt input_prompt">In&nbsp;[4]:</div>
  1285. <div class="inner_cell">
  1286. <div class="input_area">
  1287. <div class=" highlight highlight-ipynb hl-python"><pre><span></span><span class="n">gallery</span> <span class="o">=</span> <span class="n">Output</span><span class="p">()</span>
  1288. <span class="n">gallery</span>
  1289. </pre></div>
  1290. </div>
  1291. </div>
  1292. </div>
  1293. <div class="output_wrapper">
  1294. <div class="output">
  1295. <div class="output_area">
  1296. <div class="prompt"></div>
  1297. <div id="11290a74-68ce-46ca-9096-01a77a326783"></div>
  1298. <div class="output_subarea output_widget_view ">
  1299. <script type="text/javascript">
  1300. var element = $('#11290a74-68ce-46ca-9096-01a77a326783');
  1301. </script>
  1302. <script type="application/vnd.jupyter.widget-view+json">
  1303. {"version_major": 2, "version_minor": 0, "model_id": "52ea7cdf6d824834862f556af8859788"}
  1304. </script>
  1305. </div>
  1306. </div>
  1307. </div>
  1308. </div>
  1309. </div>
  1310. <div class="cell border-box-sizing code_cell rendered">
  1311. <div class="input">
  1312. <div class="prompt input_prompt">In&nbsp;[5]:</div>
  1313. <div class="inner_cell">
  1314. <div class="input_area">
  1315. <div class=" highlight highlight-ipynb hl-python"><pre><span></span><span class="kn">from</span> <span class="nn">pysketcher</span> <span class="kn">import</span> <span class="o">*</span>
  1316. </pre></div>
  1317. </div>
  1318. </div>
  1319. </div>
  1320. </div>
  1321. <div class="cell border-box-sizing code_cell rendered">
  1322. <div class="input">
  1323. <div class="prompt input_prompt">In&nbsp;[6]:</div>
  1324. <div class="inner_cell">
  1325. <div class="input_area">
  1326. <div class=" highlight highlight-ipynb hl-python"><pre><span></span><span class="kn">import</span> <span class="nn">time</span>
  1327. </pre></div>
  1328. </div>
  1329. </div>
  1330. </div>
  1331. </div>
  1332. <div class="cell border-box-sizing code_cell rendered">
  1333. <div class="input">
  1334. <div class="prompt input_prompt">In&nbsp;[7]:</div>
  1335. <div class="inner_cell">
  1336. <div class="input_area">
  1337. <div class=" highlight highlight-ipynb hl-python"><pre><span></span><span class="kn">from</span> <span class="nn">IPython.display</span> <span class="kn">import</span> <span class="n">HTML</span><span class="p">,</span> <span class="n">SVG</span><span class="p">,</span> <span class="n">display</span><span class="p">,</span> <span class="n">clear_output</span>
  1338. </pre></div>
  1339. </div>
  1340. </div>
  1341. </div>
  1342. </div>
  1343. <div class="cell border-box-sizing code_cell rendered">
  1344. <div class="input">
  1345. <div class="prompt input_prompt">In&nbsp;[8]:</div>
  1346. <div class="inner_cell">
  1347. <div class="input_area">
  1348. <div class=" highlight highlight-ipynb hl-python"><pre><span></span><span class="n">files</span> <span class="o">=</span> <span class="p">[(</span><span class="s2">&quot;dryfriction&quot;</span><span class="p">,</span><span class="s2">&quot;friction&quot;</span><span class="p">),(</span><span class="s2">&quot;pendulum&quot;</span><span class="p">,</span><span class="s2">&quot;pendulum&quot;</span><span class="p">),</span>
  1349. <span class="p">(</span><span class="s2">&quot;car&quot;</span><span class="p">,</span><span class="s2">&quot;car&quot;</span><span class="p">),(</span><span class="s2">&quot;springmass&quot;</span><span class="p">,</span><span class="s2">&quot;springmass&quot;</span><span class="p">),</span>
  1350. <span class="p">(</span><span class="s2">&quot;springdashpotmass&quot;</span><span class="p">,</span><span class="s2">&quot;springdashpotmass&quot;</span><span class="p">),(</span><span class="s2">&quot;jet_pump&quot;</span><span class="p">,</span><span class="s2">&quot;jet_pump&quot;</span><span class="p">)]</span>
  1351. </pre></div>
  1352. </div>
  1353. </div>
  1354. </div>
  1355. </div>
  1356. <div class="cell border-box-sizing code_cell rendered">
  1357. <div class="input">
  1358. <div class="prompt input_prompt">In&nbsp;[9]:</div>
  1359. <div class="inner_cell">
  1360. <div class="input_area">
  1361. <div class=" highlight highlight-ipynb hl-python"><pre><span></span><span class="n">i</span> <span class="o">=</span> <span class="mi">0</span>
  1362. <span class="n">horiz</span> <span class="o">=</span> <span class="p">[]</span>
  1363. <span class="n">vert</span> <span class="o">=</span> <span class="p">[]</span>
  1364. <span class="n">outputs</span> <span class="o">=</span> <span class="p">[</span><span class="n">Output</span><span class="p">()</span> <span class="k">for</span> <span class="n">file</span> <span class="ow">in</span> <span class="n">files</span><span class="p">]</span>
  1365. <span class="k">for</span> <span class="n">output</span> <span class="ow">in</span> <span class="n">outputs</span><span class="p">:</span>
  1366. <span class="k">if</span> <span class="n">i</span> <span class="o">==</span> <span class="mi">3</span><span class="p">:</span>
  1367. <span class="n">vert</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">HBox</span><span class="p">(</span><span class="n">horiz</span><span class="p">))</span>
  1368. <span class="n">horiz</span> <span class="o">=</span> <span class="p">[</span><span class="n">output</span><span class="p">]</span>
  1369. <span class="n">i</span> <span class="o">=</span> <span class="mi">0</span>
  1370. <span class="k">else</span><span class="p">:</span>
  1371. <span class="n">i</span> <span class="o">+=</span> <span class="mi">1</span>
  1372. <span class="n">horiz</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">output</span><span class="p">)</span>
  1373. <span class="k">if</span> <span class="n">i</span> <span class="o">&gt;=</span> <span class="mi">0</span> <span class="ow">and</span> <span class="n">i</span> <span class="o">&lt;</span> <span class="mi">3</span><span class="p">:</span>
  1374. <span class="n">vert</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">HBox</span><span class="p">(</span><span class="n">horiz</span><span class="p">))</span>
  1375. <span class="k">with</span> <span class="n">gallery</span><span class="p">:</span>
  1376. <span class="n">display</span><span class="p">(</span><span class="n">VBox</span><span class="p">(</span><span class="n">vert</span><span class="p">))</span>
  1377. <span class="n">i</span> <span class="o">=</span> <span class="mi">0</span>
  1378. <span class="k">for</span> <span class="n">file</span> <span class="ow">in</span> <span class="n">files</span><span class="p">:</span>
  1379. <span class="n">sketch</span> <span class="o">=</span> <span class="n">Sketch</span><span class="p">({})</span>
  1380. <span class="n">sketch</span><span class="o">.</span><span class="n">url2Sketch</span><span class="p">(</span><span class="n">url</span> <span class="o">+</span> <span class="n">file</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span><span class="s2">&quot;.yml&quot;</span><span class="p">)</span>
  1381. <span class="n">drawing_tool</span><span class="o">.</span><span class="n">erase</span><span class="p">()</span>
  1382. <span class="n">sketch</span><span class="o">.</span><span class="n">container</span><span class="p">[</span><span class="n">file</span><span class="p">[</span><span class="mi">1</span><span class="p">]]</span><span class="o">.</span><span class="n">draw</span><span class="p">()</span>
  1383. <span class="n">link</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;&lt;a target=</span><span class="se">\&quot;</span><span class="s2">_blank</span><span class="se">\&quot;</span><span class="s2"> href=</span><span class="se">\&quot;</span><span class="si">{</span><span class="n">url</span> <span class="o">+</span> <span class="n">file</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span><span class="s1">&#39;.yml&#39;</span><span class="si">}</span><span class="se">\&quot;</span><span class="s2">&gt;&lt;h3&gt;</span><span class="si">{</span><span class="n">file</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="si">}</span><span class="s2">&lt;/h3&gt;&lt;/a&gt;&quot;</span>
  1384. <span class="k">with</span> <span class="n">outputs</span><span class="p">[</span><span class="n">i</span><span class="p">]:</span>
  1385. <span class="n">clear_output</span><span class="p">(</span><span class="n">wait</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
  1386. <span class="n">display</span><span class="p">(</span><span class="n">HTML</span><span class="p">(</span><span class="n">link</span><span class="p">),</span>
  1387. <span class="n">SVG</span><span class="p">(</span><span class="n">Sketch</span><span class="o">.</span><span class="n">matplotlib2SVG</span><span class="p">()))</span>
  1388. <span class="n">i</span> <span class="o">+=</span> <span class="mi">1</span>
  1389. <span class="n">time</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="mf">0.1</span><span class="p">)</span>
  1390. </pre></div>
  1391. </div>
  1392. </div>
  1393. </div>
  1394. </div>
  1395. <div class="cell border-box-sizing code_cell rendered">
  1396. <div class="input">
  1397. <div class="prompt input_prompt">In&nbsp;[&nbsp;]:</div>
  1398. <div class="inner_cell">
  1399. <div class="input_area">
  1400. <div class=" highlight highlight-ipynb hl-python"><pre><span></span>
  1401. </pre></div>
  1402. </div>
  1403. </div>
  1404. </div>
  1405. </div>
  1406. </div>
  1407. </article>
  1408. </div>
  1409. </div>
  1410. </main>
  1411. <footer class="md-footer">
  1412. <div class="md-footer-meta md-typeset">
  1413. <div class="md-footer-meta__inner md-grid">
  1414. <div class="md-footer-copyright">
  1415. Made with
  1416. <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
  1417. Material for MkDocs
  1418. </a>
  1419. </div>
  1420. </div>
  1421. </div>
  1422. </footer>
  1423. </div>
  1424. <script src="../../assets/javascripts/vendor.c3dc8c49.min.js"></script>
  1425. <script src="../../assets/javascripts/bundle.f9edbbd5.min.js"></script><script id="__lang" type="application/json">{"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents"}</script>
  1426. <script>
  1427. app = initialize({
  1428. base: "../..",
  1429. features: [],
  1430. search: Object.assign({
  1431. worker: "../../assets/javascripts/worker/search.8e2cddea.min.js"
  1432. }, typeof search !== "undefined" && search)
  1433. })
  1434. </script>
  1435. <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML"></script>
  1436. </body>
  1437. </html>