{"id":13608992,"url":"https://github.com/manuzhang/jupyterlab_spark","last_synced_at":"2025-05-07T16:47:46.001Z","repository":{"id":47276799,"uuid":"182369714","full_name":"manuzhang/jupyterlab_spark","owner":"manuzhang","description":"Spark Application UI extension for JupyterLab","archived":false,"fork":false,"pushed_at":"2021-09-05T13:13:14.000Z","size":1255,"stargazers_count":10,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-06T18:59:59.858Z","etag":null,"topics":["jupyterlab","jupyterlab-extension","spark","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manuzhang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-20T06:31:59.000Z","updated_at":"2024-07-26T13:55:55.000Z","dependencies_parsed_at":"2022-07-20T17:08:53.784Z","dependency_job_id":null,"html_url":"https://github.com/manuzhang/jupyterlab_spark","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuzhang%2Fjupyterlab_spark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuzhang%2Fjupyterlab_spark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuzhang%2Fjupyterlab_spark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuzhang%2Fjupyterlab_spark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manuzhang","download_url":"https://codeload.github.com/manuzhang/jupyterlab_spark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252917727,"owners_count":21824991,"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":["jupyterlab","jupyterlab-extension","spark","typescript"],"created_at":"2024-08-01T19:01:31.565Z","updated_at":"2025-05-07T16:47:45.938Z","avatar_url":"https://github.com/manuzhang.png","language":"TypeScript","funding_links":[],"categories":["JupyterLab扩展"],"sub_categories":[],"readme":"# jupyterlab_spark\n[![npm version](https://img.shields.io/npm/v/jupyterlab_spark?style=flat-square)](https://www.npmjs.com/package/jupyterlab_spark)\n[![Build status](https://img.shields.io/github/workflow/status/manuzhang/jupyterlab_spark/Build?style=flat-square)](https://github.com/manuzhang/jupyterlab_spark/actions)\n\n\nA JupyterLab extension to show Spark Application UI in a JupyterLab panel\n\n## Prerequisites\n\n* JupyterLab\n\n## Installation\n\n```bash\njupyter labextension install jupyterlab_spark\n```\n\n## Usage\n\n\u003e Note: the extension only works with Spark application running in client mode.\n\n0. Add the following configuration to `spark-defaults.conf` to allow framing from localhost\n\n```\nspark.ui.allowFramingFrom    http://localhost\n```\n\n1. Click on the \"Application UI\" item from the new \"Spark\" menu \n\n![spark_menu](image/spark_menu.png)\n\n2. Input the Spark application id in the popped up dialog and click on \"CREATE\"\n\n![input_app_id](image/input_app_id.png)\n\nThe id can be found in driver log or output of executing `sparkContext.applicationId`\n\n3. Here is your Spark application UI. Enjoy!\n\n![spark_app_ui](image/spark_app_ui.png)\n\n## Development\n\nFor a development install (requires npm version 4 or later), do the following in the repository directory:\n\n```bash\nnpm install\nnpm run build\njupyter labextension link .\n```\n\nTo rebuild the package and the JupyterLab app:\n\n```bash\nnpm run build\njupyter lab build\n```\n\n## Acknowledgement\n\nThanks to the [xkcd exntension tutorial](https://jupyterlab.readthedocs.io/en/stable/developer/xkcd_extension_tutorial.html) and [cookiecutter template](https://github.com/jupyterlab/extension-cookiecutter-ts). I'm especially inspired by the [jupyterlab_tensorboard](https://github.com/chaoleili/jupyterlab_tensorboard) project where I also \nshamelessly borrowed some codes.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuzhang%2Fjupyterlab_spark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuzhang%2Fjupyterlab_spark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuzhang%2Fjupyterlab_spark/lists"}