{"id":21985159,"url":"https://github.com/teticio/jupyter-stack-trace","last_synced_at":"2025-04-30T08:02:43.515Z","repository":{"id":191190957,"uuid":"684115434","full_name":"teticio/jupyter-stack-trace","owner":"teticio","description":"A JupyterLab extension to jump to the line in the file of the stack trace, search Google for the error in Stack Overflow, or ask Bing Chat for help.","archived":false,"fork":false,"pushed_at":"2024-09-18T17:05:27.000Z","size":176,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T14:11:18.443Z","etag":null,"topics":["bingchat","jupyterlab-extension","stackoverflow","stacktrace"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teticio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-28T13:41:27.000Z","updated_at":"2024-10-28T00:12:53.000Z","dependencies_parsed_at":"2024-03-10T02:26:01.331Z","dependency_job_id":"1ec38696-76e1-4267-a238-074824046bf1","html_url":"https://github.com/teticio/jupyter-stack-trace","commit_stats":null,"previous_names":["teticio/jupyter-stack-trace"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teticio%2Fjupyter-stack-trace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teticio%2Fjupyter-stack-trace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teticio%2Fjupyter-stack-trace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teticio%2Fjupyter-stack-trace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teticio","download_url":"https://codeload.github.com/teticio/jupyter-stack-trace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251666250,"owners_count":21624292,"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":["bingchat","jupyterlab-extension","stackoverflow","stacktrace"],"created_at":"2024-11-29T18:12:43.615Z","updated_at":"2025-04-30T08:02:43.434Z","avatar_url":"https://github.com/teticio.png","language":"TypeScript","funding_links":[],"categories":["JupyterLab Extensions"],"sub_categories":[],"readme":"# Jupyter Stack Trace\n\n[![Github Actions Status](https://github.com/teticio/jupyter-stack-trace/workflows/Build/badge.svg)](https://github.com/teticio/jupyter-stack-trace/actions/workflows/build.yml)\nA JupyterLab extension to jump to the line in the file of the stack trace, search Google for the error in Stack Overflow, or ask Bing Chat for help.\n\n(Migrated from https://github.com/teticio/nbextension-gotoerror to JupyterLab and Jupyter Notebook 7.)\n\nOne of the disadvantages of working with Jupyter Notebooks is that they can be very difficult to debug when something goes wrong deep down in a stack trace. This extension allows you to click on any of the items in the stack trace and opens up the relevant file at the line where the error occurred. Buttons are also added which search Google for the error in Stack Overflow, or ask Bing Chat for help (for this to work, you must be logged into Bing).\n\n## Requirements\n\n- JupyterLab \u003e= 4.0.0\n\n## Install\n\nTo install the extension, execute:\n\n```bash\npip install jupyter_stack_trace\n```\n\n## Uninstall\n\nTo remove the extension, execute:\n\n```bash\npip uninstall jupyter_stack_trace\n```\n\n## Settings\n\nJupyter is only able to access files in the directory in which it is run or a subdirectory. Therefore, to be able to open a file in the stack trace, it is necessary to provide a soft link from the Jupyter launch directory to package source directories.\n\nMake a soft link in the Jupyter launch directory to a base directory of your Python installation (e.g., `~/.local/lib/python3.10`) and call this `python3.10`. Then add the prefix `~/.local/lib` in the `jupyter-stack-trace` settings. If you use `pipenv`, for example, then also make a soft link to the `~/.local/share/virtualenvs` called `virtualenvs` and add the prefix `~/.local/share`.\n\nThe exact configuration will depend on your setup, but if you find that clicking a filename in the stack trace does not open up the file, then make the soft link to a point somewhere higher up the path and add the corresponding prefix in the settings.\n\nTo make a soft link in Linux:\n\n```bash\nln -s ~/.local/lib/python3.10 python3.10\n```\n\nTo make a soft link in Windows:\n\n```cmd\nmklink -d envs C:\\users\\teticio\\Anaconda\\python\\envs\n```\n\nBy default, files are opened as read only, but you can override this in the settings. This allows you to directly modify the packages so you can add temporary debugging code.\n\n## Contributing\n\n### Development install\n\nNote: You will need NodeJS to build the extension package.\n\nThe `jlpm` command is JupyterLab's pinned version of\n[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use\n`yarn` or `npm` in lieu of `jlpm` below.\n\n```bash\n# Clone the repo to your local environment\n# Change directory to the jupyter_stack_trace directory\n# Install package in development mode\npip install -e \".\"\n# Link your development version of the extension with JupyterLab\njupyter labextension develop . --overwrite\n# Rebuild extension Typescript source after making changes\njlpm build\n```\n\nYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.\n\n```bash\n# Watch the source directory in one terminal, automatically rebuilding when needed\njlpm watch\n# Run JupyterLab in another terminal\njupyter lab\n```\n\nWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).\n\nBy default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:\n\n```bash\njupyter lab build --minimize=False\n```\n\n### Development uninstall\n\n```bash\npip uninstall jupyter_stack_trace\n```\n\nIn development mode, you will also need to remove the symlink created by `jupyter labextension develop`\ncommand. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`\nfolder is located. Then you can remove the symlink named `jupyter-stack-trace` within that folder.\n\n### Packaging the extension\n\nSee [RELEASE](RELEASE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteticio%2Fjupyter-stack-trace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteticio%2Fjupyter-stack-trace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteticio%2Fjupyter-stack-trace/lists"}