Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connector widget status sync #66

Open
edublancas opened this issue Aug 24, 2023 · 0 comments
Open

connector widget status sync #66

edublancas opened this issue Aug 24, 2023 · 0 comments

Comments

@edublancas
Copy link
Contributor

I found this scenarios where the connector widget doesn't properly sync the connection status:

  • mark the existing connection as active: when connecting from the widget, the button shows as blue; however, if I connect using jupysql (%sql --section name), the button change to blue (note that there's an edge case: if I use %sql and connect to a database that's not defined in the ini file, the connector widget won't have any database record for it. in that case, it's fine
  • Deleting a connection from the widget should also delete the connection from jupysql (i.e., running %sql --connections should no longer list the connection)
  • if I connect to a non-default database, restarting the kernel won't restore the connection. to fix this, we can save some ~/.jupysql/state.json file and store the latest connected database identifier, so restarting the kernel, reconnects to it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant