├── .gitignore ├── README.md ├── talktools.py ├── style.css └── Introduction to Tropical Geometry in IPython.ipynb /.gitignore: -------------------------------------------------------------------------------- 1 | .ipynb_checkpoints 2 | Presentation\ Introduction\ to\ Tropical\ Geometry\ in\ IPython.ipynb 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## 用 IPython 介紹熱帶幾何 2 | 3 | 這是源自我 2015 年 3 月 4 日在東華大學應用數學系的演講, 目標是介紹熱帶幾何, 而如何用 IPython 這樣的互動介面, 一邊學、一邊試、一邊做筆記。 4 | 5 | 一個目的就是要示範 IPython 的使用, 所以程式很多非常的簡略、粗糙, 也沒有用到什麼高級的演算法。這是一定要提醒的部份。 6 | 7 | ### 用 IPython NBViwer 看筆記 8 | 9 | [IPython Notebook 筆記](http://nbviewer.ipython.org/github/yenlung/Introduction-to-Tropical-Geometry-in-IPython/blob/master/Introduction%20to%20Tropical%20Geometry%20in%20IPython.ipynb) -------------------------------------------------------------------------------- /talktools.py: -------------------------------------------------------------------------------- 1 | """Tools to style a talk.""" 2 | 3 | from IPython.display import HTML, display, YouTubeVideo 4 | 5 | def prefix(url): 6 | prefix = '' if url.startswith('http') else 'http://' 7 | return prefix + url 8 | 9 | 10 | def simple_link(url, name=None): 11 | name = url if name is None else name 12 | url = prefix(url) 13 | return '%s' % (url, name) 14 | 15 | 16 | def html_link(url, name=None): 17 | return HTML(simple_link(url, name)) 18 | 19 | 20 | # Utility functions 21 | def website(url, name=None, width=800, height=450): 22 | html = [] 23 | if name: 24 | html.extend(['