{"id":23126,"date":"2021-03-25T17:26:30","date_gmt":"2021-03-25T21:26:30","guid":{"rendered":"https:\/\/bangla.salearningschool.com\/recent-posts\/restart-jupyter-notebook-kernel-using-python-code\/"},"modified":"2021-03-25T17:26:30","modified_gmt":"2021-03-25T21:26:30","slug":"restart-jupyter-notebook-kernel-using-python-code","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=23126","title":{"rendered":"Restart Jupyter Notebook Kernel using Python Code"},"content":{"rendered":"<pre><code>import IPython IPython.Application.instance().kernel.do_shutdown(True) <\/code><\/pre>\n<pre><code>#automatically restarts kernel<\/code><\/pre>\n<pre>Worked for me<\/pre>\n<pre><code><a href=\"https:\/\/stackoverflow.com\/questions\/37751120\/restart-ipython-kernel-with-a-command-from-a-cell\">https:\/\/stackoverflow.com\/questions\/37751120\/restart-ipython-kernel-with-a-command-from-a-cell<\/a>\n<\/code><\/pre>\n<pre><code>\n<\/code><\/pre>\n<pre><code>\n<\/code><\/pre>\n<pre><code>\n<\/code><\/pre>\n<pre><code>\n<\/code><\/pre>\n<p>*** . *** *** . *** . *** . ***<\/p>\n<p><em><strong><em><strong>Courses: <\/strong><a href=\"http:\/\/training.sitestree.com\/\">http:\/\/Training.SitesTree.com<\/a> (Big Data, Cloud, Security, Machine Learning)<\/em><br \/>\nBlog<\/strong>: <a href=\"http:\/\/bangla.salearningschool.com\/\">http:\/\/Bangla.SaLearningSchool.com<\/a>, <a href=\"http:\/\/sitestree.com\">http:\/\/SitesTree.com<\/a><\/em><br \/>\n<em><strong>8112223 Canada Inc.\/JustEtc<\/strong>: <a href=\"http:\/\/JustEtc.net\">http:\/\/JustEtc.net<\/a><\/em><\/p>\n<p><em><strong>Shop Online: <\/strong><\/em><a href=\"http:\/\/www.shopforsoul.com\/\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n<em><strong>Linkedin<\/strong>: <a href=\"https:\/\/ca.linkedin.com\/in\/sayedjustetc\">https:\/\/ca.linkedin.com\/in\/sayedjustetc<\/a><\/em><\/p>\n<p><strong>Medium<\/strong>: <a href=\"https:\/\/medium.com\/@SayedAhmedCanada\">https:\/\/medium.com\/@SayedAhmedCanada<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>import IPython IPython.Application.instance().kernel.do_shutdown(True) #automatically restarts kernel Worked for me https:\/\/stackoverflow.com\/questions\/37751120\/restart-ipython-kernel-with-a-command-from-a-cell *** . *** *** . *** . *** . *** Courses: http:\/\/Training.SitesTree.com (Big Data, Cloud, Security, Machine Learning) Blog: http:\/\/Bangla.SaLearningSchool.com, http:\/\/SitesTree.com 8112223 Canada Inc.\/JustEtc: http:\/\/JustEtc.net Shop Online: https:\/\/www.ShopForSoul.com\/ Linkedin: https:\/\/ca.linkedin.com\/in\/sayedjustetc Medium: https:\/\/medium.com\/@SayedAhmedCanada<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[182],"tags":[],"class_list":["post-23126","post","type-post","status-publish","format-standard","hentry","category---blog","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":70249,"url":"http:\/\/bangla.sitestree.com\/?p=70249","url_meta":{"origin":23126,"position":0},"title":"Linux Kernel Programming : A Complete Course #1 #RHCSA","author":"Author-Check- Article-or-Video","date":"August 30, 2021","format":false,"excerpt":"Linux Kernel Programming From: http:\/\/sitestree.com\/?p=4906 Categories:1, RHCSATags: Post Data:2011-04-05 00:30:24 Shop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a> (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a> In Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a> <a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a> 8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a> Shop Online:\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14860,"url":"http:\/\/bangla.sitestree.com\/?p=14860","url_meta":{"origin":23126,"position":1},"title":"PCA: Understand the affecting Factors for your portfolio, or credit score, or food pattern (causing diseases)","author":"Sayed","date":"July 5, 2019","format":false,"excerpt":"Overview for Principal Components Analysis https:\/\/support.minitab.com\/en-us\/minitab\/18\/help-and-how-to\/modeling-statistics\/multivariate\/how-to\/principal-components\/before-you-start\/overview\/ \" The goal of principal components analysis is to explain the maximum amount of variance with the fewest number of principal components.\" Interpret the key results for Principal Components Analysis https:\/\/support.minitab.com\/en-us\/minitab\/18\/help-and-how-to\/modeling-statistics\/multivariate\/how-to\/principal-components\/interpret-the-results\/key-results\/ Interpret all statistics and graphs for Principal Components Analysis https:\/\/support.minitab.com\/en-us\/minitab\/18\/help-and-how-to\/modeling-statistics\/multivariate\/how-to\/principal-components\/interpret-the-results\/all-statistics-and-graphs\/ Methods and formulas\u2026","rel":"","context":"In &quot;AI ML DS RL DL NN NLP Data Mining Optimization&quot;","block_context":{"text":"AI ML DS RL DL NN NLP Data Mining Optimization","link":"http:\/\/bangla.sitestree.com\/?cat=1910"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":23321,"url":"http:\/\/bangla.sitestree.com\/?p=23321","url_meta":{"origin":23126,"position":2},"title":"On Data Transfer: AWS to Local to AWS. Between EC2 Instances #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 29, 2021","format":false,"excerpt":"Sure, used some of the approaches Share Data among Multiple EC2 instances https:\/\/objectivefs.com\/howto\/how-to-share-files-between-ec2-instances scp and rsync commands also works for transferring files across EC2 instances AWS Import\/Export Snowball https:\/\/aws.amazon.com\/importexport\/ Related: Managing AWS, Sure, Used this. http:\/\/www.skeddly.com\/ https:\/\/app.skeddly.com\/Credentials\/Create?type=amazon-iam-role Related to Setting up an NFS server for Sharing Files across EC2 instances\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":76398,"url":"http:\/\/bangla.sitestree.com\/?p=76398","url_meta":{"origin":23126,"position":3},"title":"Kernel, Shell, Operating Systems and Functionality of Operating Systems","author":"Sayed","date":"December 4, 2024","format":false,"excerpt":"Operating System Functionality Ref: https:\/\/www.geeksforgeeks.org\/introduction-of-process-management\/","rel":"","context":"In &quot;Operating Systems&quot;","block_context":{"text":"Operating Systems","link":"http:\/\/bangla.sitestree.com\/?cat=1968"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2024\/12\/image-8.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":67698,"url":"http:\/\/bangla.sitestree.com\/?p=67698","url_meta":{"origin":23126,"position":4},"title":"It&#8217;s Linux, Mom! Not Lennox. #Computer Game Design #105 #RHCSA","author":"Author-Check- Article-or-Video","date":"July 27, 2021","format":false,"excerpt":"It's Linux, Mom! Not Lennox. Lennox is a global corporation specializing in air conditioning, heating, and commercial refrigeration. Dave Lennox helped to develop what has been described as the first riveted-steel furnace in 1895. His \"machine\" having come a long way is amazing in it's own right, but it is\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":19381,"url":"http:\/\/bangla.sitestree.com\/?p=19381","url_meta":{"origin":23126,"position":5},"title":"Reinforcement Learning and Deep Learning","author":"Sayed","date":"January 28, 2021","format":false,"excerpt":"An interactive notebook training Keras to play Catch https:\/\/github.com\/JannesKlaas\/sometimes_deep_sometimes_learning\/blob\/master\/reinforcement.ipynb Key Papers in Deep RL https:\/\/spinningup.openai.com\/en\/latest\/spinningup\/keypapers.html#key-papers-in-deep-rl DEEP REINFORCEMENT LEARNING https:\/\/arxiv.org\/pdf\/1810.06339v1.pdf Tesla: Deep Learning https:\/\/quantdare.com\/deep-reinforcement-trading\/ Playing Atari with Deep Reinforcement Learning https:\/\/arxiv.org\/pdf\/1312.5602.pdf AlphaGo is the first computer program to defeat a professional human Go player, the first to defeat a Go world\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/23126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23126"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/23126\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23126"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}