06-22-2022 07:43 AM
Hello,
I am unable to import tkinter (or Tkinter) into a python notebook.
I also tried %pip install tkinter at the top of the notebook.
Has anyone else been successful at this, or if it's impossible, why? Thank you
06-22-2022 03:51 PM
Have you tried installing the module through the cluster settings? Navigate to libraries in your cluster's settings and install from there. You should then be able to import into your notebook when attached to that cluster.Note that the cluster runtime has to be less than 7.0 to install tkinter
06-22-2022 03:51 PM
Have you tried installing the module through the cluster settings? Navigate to libraries in your cluster's settings and install from there. You should then be able to import into your notebook when attached to that cluster.Note that the cluster runtime has to be less than 7.0 to install tkinter
06-23-2022 12:23 PM
Exactly try also to install python3-tk from PyPl
06-23-2022 12:37 PM
thank you
03-08-2023 11:32 AM
Hi @Will Griffin Can you confirm if this worked for you?
I get a message `ERROR: No matching distribution found for python3-tk`.
03-09-2023 08:30 AM
I was able to PyPI install "tk" and "tk-tools"
fwiw I don't actually use them now as I found databricks widgets that meet my needs for interactive choice inside notebooks
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now