holzschu / Carnets

Carnets is a stand-alone Jupyter notebook server and client. Edit your notebooks on the go, even where there is no network.
https://holzschu.github.io/Carnets_Jupyter/
BSD 3-Clause "New" or "Revised" License
547 stars 32 forks source link

tkinter #123

Open majasan opened 3 years ago

majasan commented 3 years ago

hi..I am trying to run a script w/ that imports tkinter. I used %pip install "python-tk" and "python3-tk". I get... ""Collecting python-tk... Erro message....<> 86469

holzschu commented 3 years ago

So, the good news is that tk is now tightly integrated with Python, so you don't need to install python-tk, which is why it does not exist anymore in pip distributions (that is the meaning of the error message you got). The bad news is, there are no ports of tcl and tk for iOS, so tkinter will not work. From a quick look at things, porting tk to iOS would be very difficult.

majasan commented 3 years ago

Thanks ..appreciate taking time to respond and your great work.

On Sun, Nov 1, 2020 at 4:02 AM Nicolas Holzschuch notifications@github.com wrote:

So, the good news is that tk is now tightly integrated with Python, so you don't need to install python-tk, which is why it does not exist anymore in pip distributions (that is the meaning of the error message you got). The bad news is, there are no ports of tcl and tk for iOS, so tkinter will not work. From a quick look at things, porting tk to iOS would be very difficult.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/holzschu/Carnets/issues/123#issuecomment-720056530, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK23R5MWX6XNTHLRAQKJBZLSNUP35ANCNFSM4TGHQHUA .

RasPiPkr commented 3 years ago

Hi @majasan,

I don't have a Mac but if you have python installed tkinter should be installed as part of it as it is a built-in library.

I've not heard of it as referred to as python-tk before, If your using python3 or python3.? try just importing tkinter.

Hope this helps in some way.