quantumlib / Cirq

A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.27k stars 1.01k forks source link

autocomplete in colaboratory only goes to k #5832

Closed gatorwatt closed 2 years ago

gatorwatt commented 2 years ago

Description of the issue

This is a small thing and is more as an fyi than any pressing need for a fix. Colaboratory's autocomplete feature to view available commands associated with a module (as could be used for exploring commands available in the cirq library) appears to max out at 100 displayed commands. It would be cool for exploratory purposes if colab could add support to navigate beyond this limit.

How to reproduce the issue


circuit = cirq. 
(now hit control-space)
=> displayed autocomplete options stops at "KeyCondition"

Cirq version

1.0.0
vtomole commented 2 years ago

This sounds more like a Colab issue than a Cirq issue. Maybe you can increase that as a setting in colab. For example: https://stackoverflow.com/a/61043420/5716192

gatorwatt commented 2 years ago

I think they set a cap at 100 to benefit latency of autocomplete. Ideally could have option when scroll to bottom of list to select "show more". Either that or replace with large language model, something like that.

tanujkhattar commented 2 years ago

As @vtomole mentioned, this looks like a Colab issue and not a Cirq issue. You can consider opening an issue in one of Colab's github repository (https://github.com/googlecolab) to discuss the potential solutions.