A few days ago, I wrote a story Are you still using JupyterLab? and I got an amazing response. Readers pointed me to various new IDEs that are being developed for Data Science, but one of them stood out.
Michal Krassowski left me a note about a project that he and other contributors have been working on. JupyterLab-LSP is a Language Server Protocol integration for JupyterLab. In short, it adds new superpowers to JupyterLab, like code navigation, hover suggestions, linters, autocomplete and rename. I am really excited about this one as it addresses most of the issues, where PyCharm is superior to JupyterLab.
Code linting and hoovering suggestions
After installing JupyterLab-LSP you will notice “Fully initialized” icon in the status bar. This means that JupyterLab-LSP is working.
Code linting works great. In the example below, It shows “imported by unused” warning.
Code Completion
This one is one of the most anticipated features for me. Let’s test it.
Code Completion (CC) didn’t work for pandas or numpy as can be seen in a video below. I also tried CC with columns in pandas DataFrame, but it wasn’t any different. CC did work great with system libraries and with classes I’ve defined.
Function Signature Suggestion
Some pandas functions take many arguments, some of which I rarely use. Each time I use such function, I have to google for documentation to refresh my mind about it.
JupyterLab-LSP adds Function Signature Suggestions (FSS), which works great. You get a nice popup — not too intrusive, just right.
网友评论