Coder Social home page Coder Social logo

Comments (4)

krassowski avatar krassowski commented on May 17, 2024 1

Thanks for reporting this. I am not sure why it happens (it might be the python server fault, it may be a bug in my extension), but I will definitely investigate it in detail soon.

PS. If you use annotations a lot, have a look at mypy extension of python-language-server:

pip install pyls-mypy

While it does not work as good as the PyCharm's implementation, it does help sometimes:

Screenshot from 2019-08-25 11-10-44
Screenshot from 2019-08-25 11-10-48

from jupyterlab-lsp.

simon-ritchie avatar simon-ritchie commented on May 17, 2024

Hi, @krassowski

Thanks a lot for your contributions and information (as well as mypy information)!

from jupyterlab-lsp.

simon-ritchie avatar simon-ritchie commented on May 17, 2024

Hi.
For some reason I tried this extension today and it worked fine :O

I tried:

  • Downgraded ipython version to 7.2.0 and restarted node.js and JupyterLab

I noticed that the console had an error similar to the next issue, so I downgraded ipython yesterday.

...
/site-packages/jedi/api/classes.py", line 345, in params
 raise AttributeError('There are no params defined on this.')
AttributeError: There are no params defined on this.

jupyter/notebook#4364

And the error disappeared but did not improve.

  • Installed mypy extension

As you told me, I installed pyls-mypy.

  • And today, when I start node.js and JupyterLab again, it works fine...

The reason is not well understood. Sorry :'-(
(Maybe it's ipython, mypy, or some other influence...or maybe I misunderstood because of DataFrame completion was taking time)

Notes: np.array etc. are completed quickly. On the other hand, pd.DataFrame seems to take a lot of time or become unstable. Possibly the large DataFrame code is influencing.

20190826_3

I'll close this issue because it seems to be an effect of other libraries.
Thx!

from jupyterlab-lsp.

simon-ritchie avatar simon-ritchie commented on May 17, 2024

I'm not familiar with mypy and typeshed, but maybe type information is loaded with typeshed via mypy, as well as mypy's lint execution.

20190826_4

from jupyterlab-lsp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.