{"id":1331,"date":"2023-06-26T11:01:15","date_gmt":"2023-06-26T15:01:15","guid":{"rendered":"https:\/\/blogs.mathworks.com\/matlab\/?p=1331"},"modified":"2023-06-26T11:10:19","modified_gmt":"2023-06-26T15:10:19","slug":"matlab-kernel-for-jupyter-now-with-windows-support","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/matlab\/2023\/06\/26\/matlab-kernel-for-jupyter-now-with-windows-support\/","title":{"rendered":"MATLAB kernel for Jupyter \u2013 Now with Windows support"},"content":{"rendered":"<div class = rtcContent><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>There was a lot of excitement around <\/span><a href = \"https:\/\/blogs.mathworks.com\/matlab\/2023\/01\/30\/official-mathworks-matlab-kernel-for-jupyter-released\/\"><span style=' text-decoration: underline;'>January\u2019s release of the MATLAB kernel for Jupyter notebooks<\/span><\/a><span> with hundreds of thousands of views on various social media platforms. Unfortunately for many, however, there was one major hurdle \u2013 it didn\u2019t work on Windows! <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Well it does now! <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>On my Windows machine, all I needed to do was install JupyterLab itself along with the MATLAB kernel package and I was good to go.<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span style=' font-family: monospace;'>pip install jupyterlab<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span style=' font-family: monospace;'>pip install jupyter-matlab-proxy<\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2023\/06\/JupyterWindows_1.png\" width = \"939\" height = \"633\" alt = \"\" style = \"vertical-align: baseline; width: 939px; height: 633px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>If you\u2019ve never used Jupyter notebooks before, and are wondering what all the fuss is about, I refer you to <\/span><a href = \"https:\/\/blogs.mathworks.com\/matlab\/2023\/01\/30\/official-mathworks-matlab-kernel-for-jupyter-released\/\"><span style=' text-decoration: underline;'>my previous post<\/span><\/a><span> which will bring you up to speed. <\/span><\/div><h2  style = 'margin: 20px 10px 5px 4px; padding: 0px; line-height: 20px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; text-align: left; '><span>Working with the community<\/span><\/h2><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>The reason why the MATLAB kernel for Jupyter didn\u2019t work on Windows is that we had built our implementation in such a way that it relied on an open source project called <\/span><a href = \"https:\/\/github.com\/jupyterhub\/simpervisor\"><span style=' text-decoration: underline;'>simpervisor<\/span><\/a><span>. <\/span><a href = \"https:\/\/github.com\/jupyterhub\/simpervisor\/issues\/6\"><span style=' text-decoration: underline;'>Simpervisor didn\u2019t work on Windows<\/span><\/a><span> and so the technology we built on it also didn\u2019t work on Windows. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>So we decided to fix it.<\/span><span>  <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>The <\/span><a href = \"https:\/\/github.com\/jupyterhub\/simpervisor\/pull\/26\"><span style=' text-decoration: underline;'>initial pull request<\/span><\/a><span> was made back in late March which kicked off a conversation between MathWorkers and members of the Jupyter community. The Pull Request was reviewed, modified and was merged into the main branch on May 18<\/span><span>th<\/span><span>. <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Around the same time, I went to JupyterCon with a bunch of MathWorkers from around the world where we had the honor of meeting <\/span><a href = \"https:\/\/github.com\/yuvipanda\"><span style=' text-decoration: underline;'>Yuvi Panda<\/span><\/a><span>. Yuvi was part of the team reviewing our pull request and, as you can see from the photo below, MathWorks product manager, <\/span><a href = \"https:\/\/www.linkedin.com\/in\/yanndebray\/\"><span style=' text-decoration: underline;'>Yann Debray<\/span><\/a><span>, was <\/span><span>very excited<\/span><span> to meet him! <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>Thanks Yuvi! <\/span><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><img class = \"imageNode\" src = \"http:\/\/blogs.mathworks.com\/matlab\/files\/2023\/06\/JupyterWindows_2.png\" width = \"940\" height = \"705\" alt = \"\" style = \"vertical-align: baseline; width: 940px; height: 705px;\"><\/img><\/div><div  style = 'margin: 2px 10px 9px 4px; padding: 0px; line-height: 21px; min-height: 0px; white-space: pre-wrap; color: rgb(33, 33, 33); font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 14px; font-weight: 400; text-align: left; '><span>We had a wonderful time at JupyterCon 2023 and and we are looking forward to the next one! In the meantime, please enjoy using the MATLAB kernel for Jupyter on Windows and let us know what you think. <\/span><\/div>\r\n<\/div><script type=\"text\/javascript\">var css = ''; var head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); head.appendChild(style); style.type = 'text\/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); }<\/script>","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img src=\"https:\/\/blogs.mathworks.com\/matlab\/files\/2023\/06\/JupyterWindows_2.png\" class=\"img-responsive attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" decoding=\"async\" loading=\"lazy\" \/><\/div><p>There was a lot of excitement around January\u2019s release of the MATLAB kernel for Jupyter notebooks with hundreds of thousands of views on various social media platforms. Unfortunately for many,... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/matlab\/2023\/06\/26\/matlab-kernel-for-jupyter-now-with-windows-support\/\">read more >><\/a><\/p>","protected":false},"author":176,"featured_media":1325,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[51,20,64],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/1331"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/users\/176"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/comments?post=1331"}],"version-history":[{"count":2,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/1331\/revisions"}],"predecessor-version":[{"id":1337,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/posts\/1331\/revisions\/1337"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/media\/1325"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/media?parent=1331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/categories?post=1331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/matlab\/wp-json\/wp\/v2\/tags?post=1331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}