index.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  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, mkdocs-material-5.4.0">
  8. <title>Jypyter Sketcher</title>
  9. <link rel="stylesheet" href="assets/stylesheets/main.fe0cca5b.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="#welcome-to-jupyter-sketcher-documentation" 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. Home
  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 md-nav__item--active">
  88. <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
  89. <label class="md-nav__link md-nav__link--active" for="__toc">
  90. Home
  91. <span class="md-nav__icon md-icon">
  92. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9h14V7H3v2m0 4h14v-2H3v2m0 4h14v-2H3v2m16 0h2v-2h-2v2m0-10v2h2V7h-2m0 6h2v-2h-2v2z"/></svg>
  93. </span>
  94. </label>
  95. <a href="." title="Home" class="md-nav__link md-nav__link--active">
  96. Home
  97. </a>
  98. <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
  99. <label class="md-nav__title" for="__toc">
  100. <span class="md-nav__icon md-icon">
  101. <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>
  102. </span>
  103. Table of contents
  104. </label>
  105. <ul class="md-nav__list" data-md-scrollfix>
  106. <li class="md-nav__item">
  107. <a href="#problem-solved" class="md-nav__link">
  108. Problem solved
  109. </a>
  110. </li>
  111. <li class="md-nav__item">
  112. <a href="#getting-started" class="md-nav__link">
  113. Getting Started
  114. </a>
  115. </li>
  116. <li class="md-nav__item">
  117. <a href="#pysketcher-features" class="md-nav__link">
  118. pysketcher features
  119. </a>
  120. </li>
  121. <li class="md-nav__item">
  122. <a href="#main-benefit" class="md-nav__link">
  123. Main benefit
  124. </a>
  125. </li>
  126. </ul>
  127. </nav>
  128. </li>
  129. <li class="md-nav__item">
  130. <a href="about/" title="About" class="md-nav__link">
  131. About
  132. </a>
  133. </li>
  134. <li class="md-nav__item">
  135. <a href="sketcher/" title="Definition" class="md-nav__link">
  136. Definition
  137. </a>
  138. </li>
  139. <li class="md-nav__item">
  140. <a href="reference/" title="Reference" class="md-nav__link">
  141. Reference
  142. </a>
  143. </li>
  144. </ul>
  145. </nav>
  146. </div>
  147. </div>
  148. </div>
  149. <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
  150. <div class="md-sidebar__scrollwrap">
  151. <div class="md-sidebar__inner">
  152. <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
  153. <label class="md-nav__title" for="__toc">
  154. <span class="md-nav__icon md-icon">
  155. <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>
  156. </span>
  157. Table of contents
  158. </label>
  159. <ul class="md-nav__list" data-md-scrollfix>
  160. <li class="md-nav__item">
  161. <a href="#problem-solved" class="md-nav__link">
  162. Problem solved
  163. </a>
  164. </li>
  165. <li class="md-nav__item">
  166. <a href="#getting-started" class="md-nav__link">
  167. Getting Started
  168. </a>
  169. </li>
  170. <li class="md-nav__item">
  171. <a href="#pysketcher-features" class="md-nav__link">
  172. pysketcher features
  173. </a>
  174. </li>
  175. <li class="md-nav__item">
  176. <a href="#main-benefit" class="md-nav__link">
  177. Main benefit
  178. </a>
  179. </li>
  180. </ul>
  181. </nav>
  182. </div>
  183. </div>
  184. </div>
  185. <div class="md-content">
  186. <article class="md-content__inner md-typeset">
  187. <h1 id="welcome-to-jupyter-sketcher-documentation">Welcome to Jupyter Sketcher Documentation</h1>
  188. <p><a href="https://github.com/gbrault/jupytersketcher"><img alt="" src="images/github_small.png" /></a> <strong>Home Page of jupytersketcher project</strong></p>
  189. <h2 id="problem-solved">Problem solved</h2>
  190. <p>When you need to solve a mechanical problem, sooner or later you are going to sketch a figure to capture problem's parameters and variables.</p>
  191. <p>The better documented, the easier the problem is to resolve for the designer, and the easier it is for others to understand how it is actually solved.</p>
  192. <p>What if you could capture this in the program solving the problem and use it as a repository for all definitions and physical variables?</p>
  193. <p>This is what jupytersketcher (name of pysketcher module) is proposing to solve.</p>
  194. <p>Of course, this makes even more sense when using Jupyter notebooks, because as a sketch not only the image of the solved problem can be displayed, but the dictionary of all variables processed in the notebook for solving physics is used to draw the image and at the same time to solve the equations of motion.</p>
  195. <p>jupytersketcher is another small step to help building reusable science.</p>
  196. <h2 id="getting-started">Getting Started</h2>
  197. <p>You can use the binder link in jupytersketcher Github to see some experiments with pysketcher.
  198. <a href="https://mybinder.org/v2/gh/gbrault/jupytersketcher.git/master?filepath=notebooks%2FDryFriction.ipynb"><img alt="Binder" src="https://mybinder.org/badge_logo.svg" /></a></p>
  199. <h2 id="pysketcher-features">pysketcher features</h2>
  200. <ul>
  201. <li>Drawing sketches on a matplotlib widget for Jupyter Notebook server or Lab</li>
  202. <li>Defining a yaml based "grammar" to define sketches and simplify reuse</li>
  203. <li>Animating sketches within Jupyter notebooks</li>
  204. </ul>
  205. <h2 id="main-benefit">Main benefit</h2>
  206. <p>With Pysketcher for Jupyter mechanical notebooks, you get a single copy of the description of the problem which is as well a space to simulate the system behaviour</p>
  207. </article>
  208. </div>
  209. </div>
  210. </main>
  211. <footer class="md-footer">
  212. <div class="md-footer-nav">
  213. <nav class="md-footer-nav__inner md-grid" aria-label="Footer">
  214. <a href="about/" title="About" class="md-footer-nav__link md-footer-nav__link--next" rel="next">
  215. <div class="md-footer-nav__title">
  216. <div class="md-ellipsis">
  217. <span class="md-footer-nav__direction">
  218. Next
  219. </span>
  220. About
  221. </div>
  222. </div>
  223. <div class="md-footer-nav__button md-icon">
  224. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
  225. </div>
  226. </a>
  227. </nav>
  228. </div>
  229. <div class="md-footer-meta md-typeset">
  230. <div class="md-footer-meta__inner md-grid">
  231. <div class="md-footer-copyright">
  232. Made with
  233. <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
  234. Material for MkDocs
  235. </a>
  236. </div>
  237. </div>
  238. </div>
  239. </footer>
  240. </div>
  241. <script src="assets/javascripts/vendor.d710d30a.min.js"></script>
  242. <script src="assets/javascripts/bundle.b39636ac.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>
  243. <script>
  244. app = initialize({
  245. base: ".",
  246. features: [],
  247. search: Object.assign({
  248. worker: "assets/javascripts/worker/search.a68abb33.min.js"
  249. }, typeof search !== "undefined" && search)
  250. })
  251. </script>
  252. <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML"></script>
  253. </body>
  254. </html>