Is there anyway to have the ATOM ide always run python right from the start? I always have to write something then save, then run. Is there anyway to simple have to where I open up Atom, type some python code and hit right?
Thank you
Related
I am using windows and I installed the Arduino IDE from Microsoft store, but I wanted to code everything in VS Code. When I want to run the program or select the board it just says this:
Cannot find Arduino IDE. Please specify the "arduino.path" in the user settings. Requires a restart after change.
How can I fix this, where can I find the arduino.path?
Install PlatformIO extension for VS Code. It has Arduino framework and it works with all possible boards, and then some.
For me nothing could make Arduino IDE.app (2.0 beta) work. Switching to 1.8.6 (Arduino.app), putting that into my Applications folder (so the path is /Applications/Arduino.app) and setting the VSCode setting to:
"arduino.path": "/Applications/Arduino.app"
Fixed this error (and got me to select a board, which I was able to do with the command palette. Make sure to open the new non-beta Arduino.app and add any existing board manager jsons, such as esp32 in my case, that might have already been added to the beta Arduino. The libraries appear to already be in place.)
I also had to add this to my C/C++ settings for includePath:
${workspaceFolder}/**
/Users/<owen>/Library/Arduino15/packages/esp32/hardware/esp32/1.0.6/**
At this point "verify" began working. It was still pretty slow, and flashes the Arduino splash screen while running, so I'm now going to follow the platformIO advice and see if it's any better.
P.S. At first I also got an error about [Warning] Failed to generate IntelliSense configuration but think I fixed this by clicking the "don't show again" or similar on the popup that appeared in the lower left. (Similar errors show up on syntax issues, so could be related to that instead.)
Start to learn Julia recently. And do not want to use console ever.
How can I install a new package from IDE, with no use of console commands? I'm using Juno, but I'm opened to change IDE if Juno does not support such a feature. Than the question is - what IDE does?
You can evaluate commands from a script. Just type Pkg.add into a script and Ctrl+Enter on it. But I don't think avoiding the console entirely is a good way to program though!
Write a script
Pkg.add("Distributions")
and run it.
Using atom-editor 1.13 with the love-ide package installed to run LOVE2d 10.2 games (windows 7)
Apparently if you create a conf.lua file in the same folder as your main.lua file you can add some configuations to main.lua. So, I've got these lines of code in my conf.lua to show console.
function love.conf(t)
t.console = true
end
But when I go back to my main.lua and type print("ballz"), all I see is a blank LOVE2d game screen with no extra console window. Not really sure if this is because I'm using atom editor or not. Everything seems to be PATH'ed correctly.
On a side note, whenever I run atom using the love-ide package it always tries to install some "dependecy files" like the hyperclick-love package, and the auto-complete-love package. These fail to install because I don't have git installed.. honestly I really don't know what git is, but neither it, hyperclick, or auto-complete seemed like requirements to run my game, so in the spirit of not installing unnecessary things onto my computer I never installed these things... annoying as it is to see this notification always pop up when I start atom. Anyone know if this is contributing to the issue, or know a way to remove these notifications or auto-download-attempts? My LOVE2d code still seems to run without these packages.
Have you set up the terminal emulator in your configuration?
(Windows only) Try using the lovec.exe executable instead of the normal love.exe. The first one attaches to the console that executed the game, the second one ignores it.
Lua has a buffered output, try adding io.stdout:setvbuf('no') to the top of main.lua
I recently came across with this awesome IDE, Juno for Julia. I have setup the IDE properly and it is successfully connecting to Julia. However, I'm facing with a small problem: How am I supposed to get data from STDIN in Juno using say, readline(STDIN)?
Appreciated!
Lighttable / Juno doesn't supply an input console. But the Julia REPL (command line version) does. I find it best to have both open. In asyncronous mode you can put trow-away code, shell commands (";") and command help ("?") in REPL and keep-code in Juno, and they share variables. You just can't run async in this case, since you want Juno to stop and wait.
On Windows default setting, you need to Evaluation -> Kill Julia
and then Ctrl+Space -> Julia: Connect to a running session. Leave out just '#async' when you want to wait for input.
If there is a better way already, I'd like to know too. Source: http://discuss.junolab.org/t/how-to-read-user-input-for-julia/110
Ok this is a pretty simple question. I am new to Python and have been using JES up to this point. I just downloaded Sublime 2 and love it. But in JES there was a command that would open your code in the editor in the command console (load program). I know how to open the command console (ctrl `), but is there a way other than copying and pasting to get the code into the command console?
The Ctrl` console in ST2 uses the internal version of Python that comes with the program, Python 2.6, not the system version(s) you may have installed yourself. It's fine for some stuff, but it is outdated, and there is no (easy/intended) way to install third-party modules.
SublimeREPL is what you need. It supports Python 2 and 3 (including IPython), as well as a bunch of other languages if you're a polyglot. It basically runs a Python interpreter in another tab, which you can interact with directly, just like at the command line or via IDLE, and you can also send selected text, files, lines, or blocks (functions/classes) to the running REPL. It is available through Package Control, which you should install anyway, if you haven't come across it yet.
If up to this point you've just used JES and haven't installed a version of Python from python.org then you'll want to do that before installing SublimeREPL.