# Jupyterlab python editor extension?

**URL:** <https://discourse.jupyter.org/t/jupyterlab-python-editor-extension/11299>\
**Category:** JupyterLab\
**Tags:** jupyterhub, help-wanted\
**Created:** [October 19, 2021, 8:00am UTC](https://discourse.jupyter.org/t/jupyterlab-python-editor-extension/11299 "2021-10-19T08:00:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tan\_Sullivan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/tan_sullivan/32/5041_2.png) [@Tan\_Sullivan](https://discourse.jupyter.org/u/Tan_Sullivan)\
**Post date:** [October 19, 2021, 8:00am UTC](https://discourse.jupyter.org/t/jupyterlab-python-editor-extension/11299/1 "2021-10-19T08:00:50Z")

</div>

I’m looking for a python editor extension:

1. support code folding and collapse
2. show indention tree
3. provide lsp

* * *

any jupyterlab extension suggested?

---

<div class="post-metadata">

**Author:** ![yuuuzeee](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/yuuuzeee/32/4780_2.png) [@yuuuzeee](https://discourse.jupyter.org/u/yuuuzeee)\
**Post date:** [October 19, 2021, 3:39pm UTC](https://discourse.jupyter.org/t/jupyterlab-python-editor-extension/11299/2 "2021-10-19T15:39:56Z")

</div>

Maybe vscode with jupyter extension?

---

<div class="post-metadata">

**Author:** ![bollwyvl](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/bollwyvl/32/904_2.png) [@bollwyvl](https://discourse.jupyter.org/u/bollwyvl)\
**Post date:** [October 20, 2021, 3:42pm UTC](https://discourse.jupyter.org/t/jupyterlab-python-editor-extension/11299/3 "2021-10-20T15:42:54Z")

</div>

The folding is available by [CodeMirror](https://codemirror.net/doc/manual.html#config), which can be modified via the _Advanced Settings Editor \> Text Editor_, and might get you closer to what you’re looking for:

```json
{
    "editorConfig": {
        "codeFolding": true
    }
}

```

I don’t know of a pithy way to get indentation characters to show in codemirror, but there might be something out there that could be wrapped into…

As for LSP-in-lab: there’s [jupyterlab-lsp](https://pypi.org/project/jupyterlab-lsp/) which knows how to work with [python-lsp-server](https://pypi.org/project/python-lsp-server). There’s also a [longer discussion](https://discourse.jupyter.org/t/any-jupyterlab-extension-support-py-script-editor-and-project-management/10451/6).
