Git Product home page Git Product logo

Comments (5)

joouha avatar joouha commented on June 5, 2024 2

Some really great ideas here.

(1.a) Execute cells immediately after editing in external editor

This would be a useful addition. I've added it in a8be410.

(1.b) Use .py suffix for tempfiles when editing in external editor

This is very straight forward to implement - I've added it in ad24358.

It would be nice to generalize this further, so if using irkernel we use a .r suffix, if using julia we use a .jl suffix, etc.

(2) Function signatures in completion suggestions

I'm not sure if it is possible to access these through a jupyter kernel, I'll have to do some reading. It will be possible to add in the completion type column (e.g. function, class, module, etc.), as jupyter returns those along with completions (although this appear to still be experimental).

(3) Autosuggestion / completion while typing

Would you expect autosuggestions to come from elsewhere in the notebook, from ipython history, or to autosuggest completions?

Completion while typing is might by tricky, as there is often a slight wait for completions from jupyter, so we'd need to be careful to ensure that this does not add input latency.

(4) Variable viewer

Maybe one day 😉

from euporie.

joouha avatar joouha commented on June 5, 2024 2

I've added the ability to automatically show contextual help when typing, which contains function signatures:
image

This can be enabled from the settings menu (or manually summoned with Shift+Tab).

I'm going to mark this issue as closed now, as I have now implemented all of your suggestions (except for the variable viewer, which I've added to my roadmap).

🙂

from euporie.

yingzhu146 avatar yingzhu146 commented on June 5, 2024

Wow thanks a lot, super cool and excited to give this a try!

(2) Function signatures in completion suggestions

I'm not sure if it is possible to access these through a jupyter kernel, I'll have to do some reading. It will be possible to add in the completion type column (e.g. function, class, module, etc.), as jupyter returns those along with completions (although this appear to still be experimental).

So one way would be to get idea 2 just by providing LSP integration, which is obviously a pretty huge feature https://github.com/krassowski/jupyterlab-lsp. Or to use jedi like ptpython does?

(3) Autosuggestion / completion while typing

Would you expect autosuggestions to come from elsewhere in the notebook, from ipython history, or to autosuggest completions?

From all past history of jupyter notebooks, identical to the ipython/shell behavior.

Completion while typing is might by tricky, as there is often a slight wait for completions from jupyter, so we'd need to be careful to ensure that this does not add input latency.

(4) Variable viewer

Maybe one day 😉

🤞

from euporie.

joouha avatar joouha commented on June 5, 2024

Quick update on this

I've implemented autocompletion while typing and and autosuggestions from history (these are configurable, and can be switched on and off from the settings menu).

These will both be available in the next release

image

from euporie.

yingzhu146 avatar yingzhu146 commented on June 5, 2024

Amazing, really enjoying it!

from euporie.

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.