# how can I auto complete the code in Jupyter notebook?

I just noticed that we could use Wolfram Language from How to add front-end to the free Wolfram Engine?.

After a while of playing with Wolfram Language in Jupyter notebook, I noticed I could not auto-complete the code with Tab.

I wonder how I can auto-complete the code.

Thanks.

• The Jupyter integration is open source, and in this case, I think it is actually reasonable to say that you could implement this feature yourself (assuming you have 2 days to work on it). – Szabolcs May 23 '19 at 11:56

https://github.com/Ludwiggle/JWLS

and

https://github.com/mmatera/iwolfram

have autocompletion. I think they are still better alternatives to the official WRI jupyter Kernel which is not mature yet. IWolfram must be tweaked a little to work with the new Wolfram Engine but JWLS works out of the box insofar it has been designed to run exclusively through wolframscript; as such, it works independently of what type of wolfram product you have installed.

• I could not get iwolfram working on macOS. It just hangs when I try to set it up. – Szabolcs May 26 '19 at 15:21
• I think IWolfram set-up needs to be cleaned up by getting rid of its attempt to include Mathics and its checks on the initial response of the REPL. Then it might get installed. Did you try JWLS on Mac? – Fortsaint May 26 '19 at 16:46

Currently, this feature is not included.

If you are considering implementing it, you would need to start here:

You would need to implement handling the relevant messages. As far as I can tell, that would be complete_request. In Mathematica, you can use Names["something*"] to retrieve possible matches, which then can be returned to Jupyter.