Comments (11)
hi @stemd,
maybe you already know this but I will write it anyway. Some time ago I wrote an answer about python3 usage on LT in Stackoverflow. You can check the answer here: http://stackoverflow.com/questions/28327779/running-python-3-from-light-table
I hope it helps and kudos for volunteering to maintaining it :)
from python.
@stemd Oh, and welcome to the team by-the-way 🎉
from python.
Regarding lnter, you could check out the pluggable plugin ! https://github.com/bbbates/lt-lint
from python.
@stemd Welcome aboard! As you're learning more Clojure(Script) and this plugin, feel free to ping us with questions and open pull requests for discussion. Thanks for taking this on!
update Python external dependencies (that's only CodeMirror, I tried its python.js from 20.4.2016, it's working fine), as for this = LightTable/Python you have following:
When updating python's codemirror, keep in mind LT is running an older version of CodeMirror (LightTable/LightTable#1797) in case you see some features not working. Also, please mention in the commit or in a For Commiters section like in the Clojure plugin the exact commit used to update codemirror/python.js
from python.
I like it.
from python.
That's under "better documentation for this plugin".
I saw both python-exe
and python
strings in python_compiled.js
file in Python plugin directory, but it's smarter to change something when you know what it should do, than to change and see what happens, and scratch your head when (seemingly) nothing happen. Every approach is valid, but experienced programmer sometimes choose to read the code, not always using beginner programmer loops: try-fail and try-success.
https://s-media-cache-ak0.pinimg.com/236x/53/6d/fc/536dfc6bfc75b29874ea99d67611ca44.jpg :)
from python.
@stemd Mind if I make an announcement on the mailing list (Google Groups group)? If you want to do it yourself, that's more than fine with me too!
from python.
@kenny-evitt Please write an announcement, I'm still reading all the docs I can find, so I can start fixing issues which pain me ASAP (Ctrl+d does nothing for Python, linter in 21st century editor is must-have).
from python.
@stemd Here's the plugin (ClojureScript) code that runs the Python executable:
(defn run-py [{:keys [path project-path name client venv] :as info}]
(let [n (notifos/working "Connecting..")
obj (object/create ::connecting-notifier client)
env (if venv
{"VIRTUAL_ENV" venv}
{})
env (if (:ipython-exe @python)
(assoc env "LT_IPYTHON_PATH" (:ipython-exe @python))
env)]
(proc/exec {:command (or (:python-exe @python) (:venv-py info) "python")
:args [py-path tcp/port (clients/->id client)]
:cwd (or venv project-path)
:env env
:obj obj})))
That's (one set of code) that you'd need to change to support multiple Python versions.
from python.
@stemd My Google Groups post announcing your maintainership!
from python.
Thanks a lot @stemd & congratulations !!
from python.
Related Issues (20)
- Remote python session HOT 1
- from __future__ import print_function breaks with file argument
- Fixing eval support for iPython
- Delete whitespace intelligently or backspace by indentation, e.g. delete four spaces that function as 'a tab' HOT 1
- Python default logging isn't being output to the console
- Implement inline eval
- Multiline comments in Python doesn't compile HOT 2
- Smart-indent not outdenting correctly with Python HOT 9
- Evaluating Python not working consistently
- Eval runs all code instead of just current line
- Eval is not continuous between two executions
- "TypeError: embedded NUL character" evaluating Python file with a path containing spaces on Windows
- it seems lt only applies the system python HOT 3
- Error message does not include the filename
- Doesn't pick up system python HOT 1
- Exception occurs when tring to eval Python code HOT 5
- Exception when running python 3 on windows 7 HOT 5
- Migrate LGTM.com installation from OAuth to GitHub App
- Python Script not executing in Light Table
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python.