{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Intuition for Second Order Partial Derivatives and the Hessian Matrix\n", "> But what is a Hessian, really? \n" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Julia Version 1.5.4\n", "Commit 69fcb5745b (2021-03-11 19:13 UTC)\n", "Platform Info:\n", " OS: macOS (x86_64-apple-darwin18.7.0)\n", " CPU: Apple M1 Max\n", " WORD_SIZE: 64\n", " LIBM: libopenlibm\n", " LLVM: libLLVM-9.0.1 (ORCJIT, westmere)\n", "Active project: /Users/alex/Documents/back_of_my_envelope/_notebooks/Project.toml\n", "Sys.BINDIR: /Applications/Julia-1.5.app/Contents/Resources/julia/bin\n", "Base.julia_cmd(): `\u001b[4m/Applications/Julia-1.5.app/Contents/Resources/julia/bin/julia\u001b[24m \u001b[4m-Cnative\u001b[24m \u001b[4m-J/Applications/Julia-1.5.app/Contents/Resources/julia/lib/julia/sys.dylib\u001b[24m \u001b[4m-g1\u001b[24m \u001b[4m--color=yes\u001b[24m`\n", "\u001b[32m\u001b[1mStatus\u001b[22m\u001b[39m `~/Documents/back_of_my_envelope/_notebooks/Project.toml`\n", " \u001b[90m [a03496cd] \u001b[39m\u001b[37mPlotlyBase v0.7.3\u001b[39m\n" ] } ], "source": [ "#hide\n", "import Pkg, InteractiveUtils\n", "\n", "InteractiveUtils.versioninfo()\n", "\n", "println(\"Active project: \", Base.active_project())\n", "println(\"Sys.BINDIR: \", Sys.BINDIR)\n", "println(\"Base.julia_cmd(): \", Base.julia_cmd())\n", "\n", "Pkg.status() # must show PlotlyBase in THIS env" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "render_plotly_fastpages (generic function with 1 method)" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "#collapse\n", "# imports\n", "using PlotlyBase, IJulia\n", "\n", "# Define once at the top of the notebook\n", "function render_plotly_fastpages(p::PlotlyBase.Plot; include_plotlyjs::Union{Bool,String}=\"cdn\", full_html::Bool=false)\n", " html = sprint(io -> PlotlyBase.to_html(io, p; include_plotlyjs=include_plotlyjs, full_html=full_html))\n", "\n", " # Replace the literal plotly div with a script that inserts it at runtime\n", " if (m = match(r\"