from ipywidgets import interactive
from IPython.display import display
import numpy as np
import matplotlib.pyplot as plt
def gauss(p, w):
x=np.linspace(0.0, 1.0, 100)
y=2**(-(x-p)**2/w**2)
plt.plot(x, y)
plt.show()
g=interactive(gauss, p=(0.0,1.0), w=(0.1, 0.5))
display(g)
Sunday, February 14, 2021
IPythonWidget
Popular Posts
-
Biconjugate_Theorem Biconjugate theorem for convex functions 1. Notations Let X X X be a vector space. Let X ∗ X^* ...
-
luatex Using LuaTeX: Minimal Examples Authors: Tran Thu Le, Chat GPT 3.5 1. Introduction LuaTeX is an extension of ...
-
Solving Elastic-Net problem Solving Elastic-Net problem using Proximal Gradient Descent The Python code of this post i...
-
Github How to run Python online Using Github + MyBinder You first upload your Python script and a Jupyter notebook ...
-
Solving blasso with gradient method Solving Blasso problem using gardient descent method Let us consider a very simple...
-
plot_convex_set_2 Plotting Region defined by Inequality Constraints in Python (Part 2) Author: Tran Thu Le Date: 5/...
-
Sparse_KL Solving L1-Penalization of Kullback-Leibler Divergence using SMART Algorithm Author: Tran Thu Le Date: 7/...
-
Latex_commands_using_LuaTex Creating Stable LaTeX Commands with Underscores and Dots using LuaTeX 1. Motivation In La...
-
Unbalanced Optimal Transport as Sparse Convex Regression: model, algorithm and acceleration Unbalanced Optimal Transpor...
-
Duality in Optimization Duality in Optimization This post provides references for a collection of duality results in o...