Running Python 3 from Light Table

I try Light Table and learn how to use it. In general, I like it, but I noticed that the only way to make a clock and the built-in evaluation of work in Python programs is using Python 2.7.8, which makes it incompatible with some of my code. Is there a way to get it to use Python 3 instead?

I looked at Google and GitHub, and I could not find anything promising.

I am using a Mac with OS X 10.10.2. I have a Python 3.4.0 installation that works fine with the terminal.

+5
source share
3 answers

I had the same issue using syntax that was only valid for Python3.3. - Go to Settings: User behavior - add a line (find the real path of the python binary code): [: app: lt.plugins.python / python-exe "/usr/bin/python3.4"] - Save and check on your light table

This worked for me :) Hope this helps.

+3
source

Press Ctrl + Space to open the control panel. Then type Set Syntax and select Set Syntax to Python . Start typing your Python, then press Ctrl + Shift + Enter to create and run the program.

0
source

I have the same problem. It worked for me after saving the file with the extension .py and then entering Cmd + Enter.

0
source

Source: https://habr.com/ru/post/1212635/


All Articles