from IPython.core.display import HTML HTML ( '''<h2>Comments from old blog</h2> <div id="comments"> <h3 id="comments-title">13 Responses to <em>Histograms and Kernel Density Estimation (KDE)</em></h3> <ol class="commentlist"> <li class="comment even thread-even depth-1" id="li-comment-511"> <div id="comment-511"> <div class="comment-author vcard"> <img alt='' src='http://2.gravatar.com/avatar/e1e193d200f563e379624d348296699f?s=40&d=mm&r=g' srcset='http://2.gravatar.com/avatar/e1e193d200f563e379624d348296699f?s=80&d=mm&r=g 2x' class='avatar avatar-40 photo' height='40' width='40' /> <cite class="fn">Arindam Paul</cite> <span class="says">says:</span> </div><!-- .comment-author .vcard --> <div class="comment-meta commentmetadata"><a href="http://www.mglerner.com/blog/?p=28#comment-511"> December 14, 2013 at 10:04 pm</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=511">(Edit)</a> </div><!-- .comment-meta .commentmetadata --> <div class="comment-body"><p>Excellent !! One of the best explanations of KDE I have ever seen.<br /> This post has generated enough interest to read your other blogs. great job.</p> </div> <div class="reply"> <a rel='nofollow' class='comment-reply-link' href='http://www.mglerner.com/blog/?p=28&replytocom=511#respond' onclick='return addComment.moveForm( "comment-511", "511", "respond", "28" )' aria-label='Reply to Arindam Paul'>Reply</a> </div><!-- .reply --> </div><!-- #comment-## --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-560"> <div id="comment-560"> <div class="comment-author vcard"> <img alt='' src='http://0.gravatar.com/avatar/c4332fd6971134c4ce706b3021a1afef?s=40&d=mm&r=g' srcset='http://0.gravatar.com/avatar/c4332fd6971134c4ce706b3021a1afef?s=80&d=mm&r=g 2x' class='avatar avatar-40 photo' height='40' width='40' /> <cite class="fn">Nils Wagner</cite> <span class="says">says:</span> </div><!-- .comment-author .vcard --> <div class="comment-meta commentmetadata"><a href="http://www.mglerner.com/blog/?p=28#comment-560"> February 19, 2014 at 8:45 am</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=560">(Edit)</a> </div><!-- .comment-meta .commentmetadata --> <div class="comment-body"><p>Assume that we have a spatial energy distribution given at discrete points in 3-D, i.e.</p> <p>E_i(x_i,y_i,z_i)</p> <p>where E_i denotes the energy and x_i,y_i,z_i are the corresponding coordinates.</p> <p>Is it possible to extract the local hot spots using scipy ?</p> <p>A small example is appreciated.</p> <p>Thanks in advance.</p> </div> <div class="reply"> <a rel='nofollow' class='comment-reply-link' href='http://www.mglerner.com/blog/?p=28&replytocom=560#respond' onclick='return addComment.moveForm( "comment-560", "560", "respond", "28" )' aria-label='Reply to Nils Wagner'>Reply</a> </div><!-- .reply --> </div><!-- #comment-## --> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="li-comment-9267"> <div id="comment-9267"> <div class="comment-author vcard"> <img alt='' src='http://1.gravatar.com/avatar/77076e72c1acb8e5e811165d72334357?s=40&d=mm&r=g' srcset='http://1.gravatar.com/avatar/77076e72c1acb8e5e811165d72334357?s=80&d=mm&r=g 2x' class='avatar avatar-40 photo' height='40' width='40' /> <cite class="fn"><a href='http://www.yourdomain.com' rel='external nofollow' class='url'>domain</a></cite> <span class="says">says:</span> </div><!-- .comment-author .vcard --> <div class="comment-meta commentmetadata"><a href="http://www.mglerner.com/blog/?p=28#comment-9267"> October 12, 2014 at 9:36 pm</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=9267">(Edit)</a> </div><!-- .comment-meta .commentmetadata --> <div class="comment-body"><p>It's really a cool and helpful piece of info. I'm happy that you simply shared this helpful information with us.<br /> Please stay us up to date like this. Thanks for sharing.</p> </div> <div class="reply"> <a rel='nofollow' class='comment-reply-link' href='http://www.mglerner.com/blog/?p=28&replytocom=9267#respond' onclick='return addComment.moveForm( "comment-9267", "9267", "respond", "28" )' aria-label='Reply to domain'>Reply</a> </div><!-- .reply --> </div><!-- #comment-## --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-21606"> <div id="comment-21606"> <div class="comment-author vcard"> <img alt='' src='http://0.gravatar.com/avatar/39a8a0bf814df9653a7a7cb1ffc2aee1?s=40&d=mm&r=g' srcset='http://0.gravatar.com/avatar/39a8a0bf814df9653a7a7cb1ffc2aee1?s=80&d=mm&r=g 2x' class='avatar avatar-40 photo' height='40' width='40' /> <cite class="fn">Andreas</cite> <span class="says">says:</span> </div><!-- .comment-author .vcard --> <div class="comment-meta commentmetadata"><a href="http://www.mglerner.com/blog/?p=28#comment-21606"> February 1, 2015 at 9:13 am</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=21606">(Edit)</a> </div><!-- .comment-meta .commentmetadata --> <div class="comment-body"><p>Thanks for sharing your knowledge and interpretation of kernel density estimation with us. Very enlighting.</p> </div> <div class="reply"> <a rel='nofollow' class='comment-reply-link' href='http://www.mglerner.com/blog/?p=28&replytocom=21606#respond' onclick='return addComment.moveForm( "comment-21606", "21606", "respond", "28" )' aria-label='Reply to Andreas'>Reply</a> </div><!-- .reply --> </div><!-- #comment-## --> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="li-comment-22489"> <div id="comment-22489"> <div class="comment-author vcard"> <img alt='' src='http://0.gravatar.com/avatar/64f00e8430ab28fbcf370406b089b937?s=40&d=mm&r=g' srcset='http://0.gravatar.com/avatar/64f00e8430ab28fbcf370406b089b937?s=80&d=mm&r=g 2x' class='avatar avatar-40 photo' height='40' width='40' /> <cite class="fn">gmas</cite> <span class="says">says:</span> </div><!-- .comment-author .vcard --> <div class="comment-meta commentmetadata"><a href="http://www.mglerner.com/blog/?p=28#comment-22489"> February 17, 2015 at 8:23 am</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=22489">(Edit)</a> </div><!-- .comment-meta .commentmetadata --> <div class="comment-body"><p>If I try to run your notebook, I get this name error:</p> <p><code><br /> NameError Traceback (most recent call last)<br /> in ()<br /> ----> 1 ani = getHistBinNumAni(data)<br /> 2 display_animation(ani, default_mode='once')</p> <p>NameError: name 'getHistBinNumAni' is not defined<br /> </code></p> </div> <div class="reply"> <a rel='nofollow' class='comment-reply-link' href='http://www.mglerner.com/blog/?p=28&replytocom=22489#respond' onclick='return addComment.moveForm( "comment-22489", "22489", "respond", "28" )' aria-label='Reply to gmas'>Reply</a> </div><!-- .reply --> </div><!-- #comment-## --> <ul class="children"> <li class="comment odd alt depth-2" id="li-comment-22490"> <div id="comment-22490"> <div class="comment-author vcard"> <img alt='' src='http://0.gravatar.com/avatar/64f00e8430ab28fbcf370406b089b937?s=40&d=mm&r=g' srcset='http://0.gravatar.com/avatar/64f00e8430ab28fbcf370406b089b937?s=80&d=mm&r=g 2x' class='avatar avatar-40 photo' height='40' width='40' /> <cite class="fn">gmas</cite> <span class="says">says:</span> </div><!-- .comment-author .vcard --> <div class="comment-meta commentmetadata"><a href="http://www.mglerner.com/blog/?p=28#comment-22490"> February 17, 2015 at 8:25 am</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=22490">(Edit)</a> </div><!-- .comment-meta .commentmetadata --> <div class="comment-body"><p>Ops.. I have just read the last part that asks to run the code before the other cells! Maybe you can add a note at the begin of the post..</p> </div> <div class="reply"> <a rel='nofollow' class='comment-reply-link' href='http://www.mglerner.com/blog/?p=28&replytocom=22490#respond' onclick='return addComment.moveForm( "comment-22490", "22490", "respond", "28" )' aria-label='Reply to gmas'>Reply</a> </div><!-- .reply --> </div><!-- #comment-## --> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-odd thread-alt depth-1" id="li-comment-26940"> <div id="comment-26940"> <div class="comment-author vcard"> <img alt='' src='http://1.gravatar.com/avatar/ab757a5013bba27ff3d69b8448b5b4a9?s=40&d=mm&r=g' srcset='http://1.gravatar.com/avatar/ab757a5013bba27ff3d69b8448b5b4a9?s=80&d=mm&r=g 2x' class='avatar avatar-40 photo' height='40' width='40' /> <cite class="fn">X</cite> <span class="says">says:</span> </div><!-- .comment-author .vcard --> <div class="comment-meta commentmetadata"><a href="http://www.mglerner.com/blog/?p=28#comment-26940"> June 23, 2015 at 4:54 pm</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=26940">(Edit)</a> </div><!-- .comment-meta .commentmetadata --> <div class="comment-body"><p>Is there a way to fit data to an exponential distribution such that it maximizes the entropy H(p_i) = - sum p_i*log(p_i) where p_i is the probability of a given event?</p> </div> <div class="reply"> <a rel='nofollow' class='comment-reply-link' href='http://www.mglerner.com/blog/?p=28&replytocom=26940#respond' onclick='return addComment.moveForm( "comment-26940", "26940", "respond", "28" )' aria-label='Reply to X'>Reply</a> </div><!-- .reply --> </div><!-- #comment-## --> <ul class="children"> <li class="comment byuser comment-author-mglerner bypostauthor odd alt depth-2" id="li-comment-26985"> <div id="comment-26985"> <div class="comment-author vcard"> <img alt='' src='http://1.gravatar.com/avatar/d49bf8fdd300871a66f21a8a97674483?s=40&d=mm&r=g' srcset='http://1.gravatar.com/avatar/d49bf8fdd300871a66f21a8a97674483?s=80&d=mm&r=g 2x' class='avatar avatar-40 photo' height='40' width='40' /> <cite class="fn">mglerner</cite> <span class="says">says:</span> </div><!-- .comment-author .vcard --> <div class="comment-meta commentmetadata"><a href="http://www.mglerner.com/blog/?p=28#comment-26985"> June 25, 2015 at 4:00 pm</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=26985">(Edit)</a> </div><!-- .comment-meta .commentmetadata --> <div class="comment-body"><p>I don't know, but I've been wondering about similar things for a while. If I do learn the answer, I'll update.</p> </div> <div class="reply"> <a rel='nofollow' class='comment-reply-link' href='http://www.mglerner.com/blog/?p=28&replytocom=26985#respond' onclick='return addComment.moveForm( "comment-26985", "26985", "respond", "28" )' aria-label='Reply to mglerner'>Reply</a> </div><!-- .reply --> </div><!-- #comment-## --> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="post pingback"> <p>Pingback: <a href='https://www.physicsforums.com/threads/histogram-to-pdf.835833/#post-5247985' rel='external nofollow' class='url'>Histogram to PDF</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=29099">(Edit)</a></p> </li><!-- #comment-## --> <li class="post pingback"> <p>Pingback: <a href='https://www.physicsforums.com/threads/histogram-to-pdf.835833/#post-5252532' rel='external nofollow' class='url'>Histogram to PDF</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=29216">(Edit)</a></p> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="li-comment-29361"> <div id="comment-29361"> <div class="comment-author vcard"> <img alt='' src='http://2.gravatar.com/avatar/50bb656b9713cee43bb2bdd8c25f75ae?s=40&d=mm&r=g' srcset='http://2.gravatar.com/avatar/50bb656b9713cee43bb2bdd8c25f75ae?s=80&d=mm&r=g 2x' class='avatar avatar-40 photo' height='40' width='40' /> <cite class="fn"><a href='http://www.fixmynix.com' rel='external nofollow' class='url'>Koushik Khan</a></cite> <span class="says">says:</span> </div><!-- .comment-author .vcard --> <div class="comment-meta commentmetadata"><a href="http://www.mglerner.com/blog/?p=28#comment-29361"> October 14, 2015 at 3:09 am</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=29361">(Edit)</a> </div><!-- .comment-meta .commentmetadata --> <div class="comment-body"><p>Awesome presentation !</p> </div> <div class="reply"> <a rel='nofollow' class='comment-reply-link' href='http://www.mglerner.com/blog/?p=28&replytocom=29361#respond' onclick='return addComment.moveForm( "comment-29361", "29361", "respond", "28" )' aria-label='Reply to Koushik Khan'>Reply</a> </div><!-- .reply --> </div><!-- #comment-## --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-33124"> <div id="comment-33124"> <div class="comment-author vcard"> <img alt='' src='http://0.gravatar.com/avatar/67cc0e4cd331c2d2728133b615aced06?s=40&d=mm&r=g' srcset='http://0.gravatar.com/avatar/67cc0e4cd331c2d2728133b615aced06?s=80&d=mm&r=g 2x' class='avatar avatar-40 photo' height='40' width='40' /> <cite class="fn">Ben</cite> <span class="says">says:</span> </div><!-- .comment-author .vcard --> <div class="comment-meta commentmetadata"><a href="http://www.mglerner.com/blog/?p=28#comment-33124"> July 13, 2016 at 7:09 am</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=33124">(Edit)</a> </div><!-- .comment-meta .commentmetadata --> <div class="comment-body"><p>Fantastic explanation!<br /> Best KDE description I've found so far!<br /> Keep up the good work!</p> </div> <div class="reply"> <a rel='nofollow' class='comment-reply-link' href='http://www.mglerner.com/blog/?p=28&replytocom=33124#respond' onclick='return addComment.moveForm( "comment-33124", "33124", "respond", "28" )' aria-label='Reply to Ben'>Reply</a> </div><!-- .reply --> </div><!-- #comment-## --> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="li-comment-34145"> <div id="comment-34145"> <div class="comment-author vcard"> <img alt='' src='http://2.gravatar.com/avatar/e04743b9f0b91fe808eda34de68c222a?s=40&d=mm&r=g' srcset='http://2.gravatar.com/avatar/e04743b9f0b91fe808eda34de68c222a?s=80&d=mm&r=g 2x' class='avatar avatar-40 photo' height='40' width='40' /> <cite class="fn"><a href='http://www.imdb.com/' rel='external nofollow' class='url'>Milissa Washam</a></cite> <span class="says">says:</span> </div><!-- .comment-author .vcard --> <div class="comment-meta commentmetadata"><a href="http://www.mglerner.com/blog/?p=28#comment-34145"> December 11, 2016 at 12:20 am</a> <a class="comment-edit-link" href="http://www.mglerner.com/blog/wp-admin/comment.php?action=editcomment&c=34145">(Edit)</a> </div><!-- .comment-meta .commentmetadata --> <div class="comment-body"><p>Just wanted to say this website is extremely good. I always want to hear new things about this because I’ve the similar blog during my Country with this subject which means this help´s me a lot. I did so a search around the issue and located a large amount of blogs but nothing beats this. Many thanks for sharing so much inside your blog..</p> </div> <div class="reply"> <a rel='nofollow' class='comment-reply-link' href='http://www.mglerner.com/blog/?p=28&replytocom=34145#respond' onclick='return addComment.moveForm( "comment-34145", "34145", "respond", "28" )' aria-label='Reply to Milissa Washam'>Reply</a> </div><!-- .reply --> </div><!-- #comment-## --> </li><!-- #comment-## --> </ol> </div><!-- #comments --> ''' )