jupyter / jupyter_client

Jupyter protocol client APIs
https://jupyter-client.readthedocs.io
BSD 3-Clause "New" or "Revised" License
374 stars 279 forks source link

Question: How can I make the code completer recognize extra namespace? #1019

Open suewonjp opened 4 months ago

suewonjp commented 4 months ago

Currently, I'm looking to figure out how to use a remotely started kernel invoked by IPython.start_kernel or IPython.embed_kernel on a Jupyter front end.

I think the approach at https://stackoverflow.com/a/76276431/5390999 is cool and I could execute an arbitrary code on a remotely started kernel from cells on a Jupyter Lab.

However, code completion didn't work and I think it's because the code completer (of the local kernel running on the Jupyter) couldn't recognize the namespace residing on the remote kernel process.

The question is: What should I do for the local code completer to know the namespace on the remotely started kernel so code completion for the namespace on the remote kernel can seamlessly work?