{"id":13606676,"url":"https://github.com/Calysto/matlab_kernel","last_synced_at":"2025-04-12T08:31:56.985Z","repository":{"id":26655838,"uuid":"30112103","full_name":"Calysto/matlab_kernel","owner":"Calysto","description":"Jupyter Kernel for Matlab","archived":false,"fork":false,"pushed_at":"2022-05-09T10:21:04.000Z","size":438,"stargazers_count":469,"open_issues_count":27,"forks_count":76,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-09T06:06:52.759Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Calysto.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-31T12:51:06.000Z","updated_at":"2024-12-19T14:23:01.000Z","dependencies_parsed_at":"2022-06-29T14:01:13.151Z","dependency_job_id":null,"html_url":"https://github.com/Calysto/matlab_kernel","commit_stats":null,"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calysto%2Fmatlab_kernel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calysto%2Fmatlab_kernel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calysto%2Fmatlab_kernel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calysto%2Fmatlab_kernel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Calysto","download_url":"https://codeload.github.com/Calysto/matlab_kernel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248540000,"owners_count":21121272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T19:01:11.410Z","updated_at":"2025-04-12T08:31:51.967Z","avatar_url":"https://github.com/Calysto.png","language":"Jupyter Notebook","funding_links":[],"categories":["Jupyter Notebook","others","Jupyter内核"],"sub_categories":[],"readme":"\nA Matlab kernel for Jupyter\n===========================\n\nPrerequisites\n-------------\nInstall `Jupyter Notebook \u003chttp://jupyter.readthedocs.org/en/latest/install.html\u003e`_ and the\n`Matlab engine for Python \u003chttps://www.mathworks.com/help/matlab/matlab-engine-for-python.html\u003e`_.\n\nInstallation\n------------\n\nInstall using::\n\n    $ pip install matlab_kernel\n\nor ``pip install git+https://github.com/Calysto/matlab_kernel`` for the dev version.\n\nTo use the kernel, run one of::\n\n    $ jupyter notebook\n    # In the notebook interface, select Matlab from the 'New' menu\n    $ jupyter qtconsole --kernel matlab\n    $ jupyter console --kernel matlab\n\nTo remove from kernel listings::\n\n    $ jupyter kernelspec remove matlab\n\n\nConfiguration\n-------------\nThe kernel can be configured by adding an ``matlab_kernel_config.py`` file to the\n``jupyter`` config path.  The ``MatlabKernel`` class offers ``plot_settings`` as a configurable traits.\nThe available plot settings are:\n'format', 'backend', 'width', 'height', and 'resolution'.\n\n.. code:: bash\n\n    cat ~/.jupyter/matlab_kernel_config.py\n    c.MatlabKernel.plot_settings = dict(format='svg')\n\n\nTroubleshooting\n---------------\n\nKernel Times Out While Starting\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nIf the kernel is not starting, try running the following from a terminal.\n\n.. code:: shell\n\n  python -m matlab_kernel.check\n\nPlease include that output if opening an issue.\n\n\nKernel is Not Listed\n~~~~~~~~~~~~~~~~~~~~\nIf the kernel is not listed as an available kernel, first try the following command:\n\n.. code:: shell\n\n    python -m matlab_kernel install --user\n\nIf the kernel is still not listed, verify that the following point to the same\nversion of python:\n\n.. code:: shell\n\n    which python  # use \"where\" if using cmd.exe\n    which jupyter\n\n\nAdditional information\n----------------------\n\nThe Matlab kernel is based on `MetaKernel \u003chttp://pypi.python.org/pypi/metakernel\u003e`_,\nwhich means it features a standard set of magics.  For a full list of magics,\nrun ``%lsmagic`` in a cell.\n\nA sample notebook is available online_.\n\nA note about plotting.  After each call to Matlab, we ask Matlab to save any\nopen figures to image files whose format and resolution are defined using the\n``%plot`` magic.  The resulting image is shown inline in the notebook.  You can\nuse ``%plot native`` to raise normal Matlab windows instead.\n\n\nAdvanced Installation Notes\n---------------------------\n\nWe automatically install a Jupyter kernelspec when installing the python package. This location can be found using ``jupyter kernelspec list``. If the default location is not desired, you can remove the directory for the octave kernel, and install using ``python -m matlab_kernel install``. See ``python -m matlab_kernel install --help`` for available options.\n\nIt has been reported that Matlab version 2016b works fine. However, Matlab 2014b does not work with Python 3.5.\n\n.. _online: http://nbviewer.ipython.org/github/Calysto/matlab_kernel/blob/master/matlab_kernel.ipynb\n\n\nDevelopment\n~~~~~~~~~~~\n\nInstall the package locally::\n\n    $ pip install -e .\n    $ python -m matlab_kernel install\n\nAs you make changes, test them in a notebook (restart the kernel between changes).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCalysto%2Fmatlab_kernel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCalysto%2Fmatlab_kernel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCalysto%2Fmatlab_kernel/lists"}