cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

iPython shell `set_next_input` not working

196083
New Contributor II

I'm running on 11.3 LTS.

Expected Behavior:

Jupyter Shell ExampleDatabricks Notebook Behavior (it does nothing):

Databricks Behavior 

You can also do `shell.set_next_input("test", replace=True)` to replace the current cell content which also doesn't work on Databricks.

`set_next_input` stores this input in the payload manager which is then stored in the reply after execute in the `payload` key: https://github.com/ipython/ipykernel/blob/main/ipykernel/ipkernel.py#L433-L439

It seems like Databricks is not recognizing the payload in the reply and the information is getting dropped. Happy to help in any way to get this resolved since this feature is important for the work we are doing on Databricks.

1 REPLY 1

196083
New Contributor II

Hey @Kaniz Fatmaโ€‹, thanks for taking the time to reply! I just tried DBR version 11.2 and it also has this issue. Let me know if there is anything else I can do to help.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group