{ "cells": [ { "cell_type": "code", "execution_count": 108, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from IPython.display import HTML\n", "display(HTML(''))" ] }, { "cell_type": "code", "execution_count": 114, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "display(HTML(\"\"))" ] }, { "cell_type": "code", "execution_count": 141, "metadata": {}, "outputs": [], "source": [ "programs = {\n", " 'p(v, T) in 2D': ['van_der_waals/p_v_2D.ipynb', '111-000.png'],\n", " \n", " 'Change in volume': ['van_der_waals/phase_transition_volume.ipynb', '112-000.png'],\n", " \n", " 'Critical points': ['van_der_waals/critical_points.ipynb', '113-000.png'],\n", " \n", " 'Effect of a and b on the isotherms': ['van_der_waals/effect_of_a_and_b.ipynb', '114-000.png'],\n", " \n", " 'Compare elements': ['van_der_waals/compare_elements.ipynb', '115-000.png'],\n", " \n", " 'p(v, T) in 3D': ['van_der_waals/p_v_T_3D.ipynb', '116-000.png'],\n", " \n", " 'Chemical potential': ['van_der_waals/chemical_potential.ipynb', '117-000.png'],\n", " \n", " 'Mathematical analysis': ['van_der_waals/mathematical_analysis.ipynb', '118-000.png'],\n", " \n", " 'Effect of a and b on the function': ['van_der_waals/parameters_analysis.ipynb', '119-000.png'],\n", " \n", " 'Non-existence zone': ['van_der_waals/stability.ipynb', '11A-000.png'],\n", " \n", " 'Gibbs free energy': ['van_der_waals/p_T_2D.ipynb', '11B-000.png'],\n", " \n", " 'Effect of a and b on the isotherms (reduced variables)': ['van_der_waals/effect_of_a_and_b_reduced.ipynb', '11C-000.png'],\n", "}" ] }, { "cell_type": "code", "execution_count": 145, "metadata": { "scrolled": false }, "outputs": [ { "data": { "text/html": [ "
\"W3Schools\"

p(v, T) in 2D

\"W3Schools\"

Change in volume

\"W3Schools\"

Critical points

\"W3Schools\"

Effect of a and b on the isotherms

\"W3Schools\"

Compare elements

\"W3Schools\"

p(v, T) in 3D

\"W3Schools\"

Chemical potential

\"W3Schools\"

Mathematical analysis

\"W3Schools\"

Effect of a and b on the function

\"W3Schools\"

Non-existence zone

\"W3Schools\"

Gibbs free energy

\"W3Schools\"

Effect of a and b on the isotherms (reduced variables)

\"W3Schools\"
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "row_start = '
'\n", "row_end = '
'\n", "\n", "col_start = '
'\n", "col_end = '
'\n", "\n", "link_start = '
\"W3Schools\"
'\n", "\n", "\n", "web_string = web_string + row_start\n", "\n", "i = 0\n", "max_col = 4\n", "\n", "for key, values in programs.items():\n", "\n", " file_path = '../apps/apps/' + values[0]\n", " image_path = 'static/images/' + values[1]\n", " \n", " if i == max_col:\n", " web_string = web_string + row_start\n", " i = 0\n", " \n", " web_string = web_string + col_start\n", " web_string = web_string + '

' + key + '

'\n", " web_string = web_string + link_start + file_path + link_middle\n", " web_string = web_string + image_start + image_path\n", " web_string = web_string + image_end + link_end\n", " web_string = web_string + col_end\n", " i = i + 1\n", " \n", "web_string = web_string + row_end\n", "\n", "display(HTML(web_string))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.0" } }, "nbformat": 4, "nbformat_minor": 2 }