/jupyter-notes

this is a compilation of my notes from different topics, mostly physics and programming

Primary LanguageJupyter Notebook

tag based organization

My notes are organized by tags.

a list of tags

I decided on a two level tag system. Hope the following list is self explanatory.

import json
from pprint import pprint
with open('tags.json') as tags_jsonfile:
    tags_data=json.load(tags_jsonfile)
#pprint(tags_data)
from IPython.core.display import HTML,display
HTML_string=""
HTML_string+="<ol>"
for subject in tags_data[u'subjects']:
    HTML_string+="<li>"+subject["id"]+"</li>"
    HTML_string+="<ol>"
    for topic in subject["topics"]:        
        HTML_string+="<li>"+topic["id"]+"</li>"
        HTML_string+="<ol>"            
        for subtopic in topic["subtopics"]:
            HTML_string+="<li>"+subtopic["id"]+"</li>"
        if HTML_string[-4:]=="<ol>":
            HTML_string=HTML_string[:-4]
        else:
            HTML_string+="</ol>"
    if HTML_string[-4:]=="<ol>":
        HTML_string=HTML_string[:-4]
    else:
        HTML_string+="</ol>"
if HTML_string[-4:]=="<ol>":
    HTML_string=HTML_string[:-4]
else:
    HTML_string+="</ol>"          
HTML(HTML_string)
  1. Physics
    1. Classical Mechanics
    2. Electromagnetism
    3. Quantum Mechanics
    4. Condensed Matter Physics
    5. Density Functional Theory
  2. Mathematics
    1. Groups
    2. Linear Algebra
  3. Programming
    1. Bash
    2. Fortran
    3. Gnuplot
    4. Python
      1. Vanilla Python
      2. Matplotlib
      3. Mayavi