โ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