I was trying to find a decent ide for python3, and atom sounded a good choice, but the atom runner is not very interactive. For example this simple code produces an error, I'm pasting a screenshot, to show the problem as it is:
Can I configure atom to execute code interactively. The way I noticed the problem was that atom runner first executes all of the code and then ONLY displays the output. Is there a fix or any packages for this?
If not, please suggest a descent and simple to use IDE for python. If there was something like the online repl.it but for offline use, it would really fit my taste.
For atom there is a package called The Terminal Plus Package: https://atom.io/packages/terminal-plus, this will open a virtual terminal that will have a the capabilities of a normal terminal. Hope I helped!
-Zeus
Related
Recently, I switched my OS to Ubuntu. I just started with collage and I have to learn pascal for my finals. But a problem occurred.
I installed Visual Studio Code and Pascal extension for it, but I am unable to run even a simple Hello World code. I wrote code, it saved automatically as .pas, but when I enter debug & run option in VSC it displays a message that says 'Open a file which can be debugged or run.', followed by 'debug' and 'run' buttons that I am unable to click and another message that says 'To further configure Debug and Run create a launch.json file.'
I am not even sure am I supposed to post questions such as this one on stackoverflow, but I sincerelly hope that someone could give me a hint on what to do. Solve this within Visual Studio Code or switch to another IDE (and which one would you recommend for Linux user) and pretend that nothing happened?
Thanks in advance.
I know this isn't an answer to "how to debug with pascal with vscode" but, perhaps you would find it easier to just use FPC / Lazarus (IDE) to do your work. While it doesn't have a dark theme, contrary to popular belief, that's not necessary to program.
The IDE is feature packed and allows for full code completion, debugging, etc... (everything you really need to do the work for school).
Additionally, you can use this open source tool to install everything you need for your platform in just a few button clicks (also allows for installing common library packages)
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases
download release for your OS
under "FPC Version" & "Lazarus Version" select trunkgit (or stable for an older version)
click the "Install/Update FPC + Lazarus" button
Have you Installed Pascal extension which is available for code to smoothly run pascal code.
If you haven't then try installing this extension using,
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
ext install alefragnani.pascal
You can always check,
https://marketplace.visualstudio.com/items?itemName=alefragnani.pascal
to install and configure pascal in vscode.
I will direct you to the debugging page from the Visual Studio Code documentation that details how to use the debugger and configure a launch.json file. VSCode is a generic IDE so you need to give it some information about your project before it knows how to run the debugger. This is what launch.json is for.
If I could make a suggestion. When you're learning how to program, it's best to start with the basics. Write a small program in a text editor (VSCode is fine, or Vim, or Nano, or Notepad, or whatever). Save the file. Compile and run the program on the command line.
Once you put an IDE in the mix, you have to learn how to use that as well. If you're stuck on both parts, it can be hard to make progress. That said, it's good to learn how to use the IDE, and you should spend some time reading the documentation and working through some of the examples. It takes some time, but it will pay you back a thousand times when you can work more quickly.
I installed Terminality (https://github.com/spywhere/Terminality) using package control in sublime text 3 on macOS. In it's github page, it's showing that Terminality can work interactively like terminal. But, when I run a c program, it's taking all the input once and printing all the output once (like it works in competitive programming environments like Hackerrank or Codechef). It's working perfectly fine for python. Can anyone help me tweaking it so that it works interactively for C also? Thanks in advance!
I am an Electrical engineer. I am completely new for programming and coding..
Actually i am working as estimation engineer, where i am doing the same estimation again and again with excel.
As same in design stage also i am doing the same again and again.
I thought i will create a application which will automatically do the estimation based on my input. and the same time at the time of design stage it will input from my estimation sheet it will generate the drawing automatically.
(i am doing estimation in excel, preparing drawing in auto cad)
from google, i found the following..
To write a program I need to know a language. so i selected python version 3.6.1
To create a stand alone or micro soft windows installer i selected cx freeze which is converting my code to .exe filex
To create a user interface i selected glade.
But i dont know how to install gtk builder to link pythin code and glade files.
Hopefully you got the point what i am looking..
I am using windiws 10 with 64 bit version
Advance thanks for all
All the information you need on how to install GTK+ and Glade on Windows is on the GTK+ Website.
However, If you're a total beginner, then I suggest you start small, as the kind of work you're describing seems a lot of work for someone who has never written a single line of code.
As suggested by #liberforce, install GTK+ and Glade on Windows from their GTK+ Website. This way you will have an environment (MINGW64) inside which you can practice.
Install python from their download site.
Check also these instructions for how to use it.
The key points (at least for me) are:
Copy the hello.py script you created to C:\msys64\home\<username>
In the mingw32 terminal execute python3 hello.py - a window should appear.
After that, if you want to make an executable, follow these instructions. Try their example for gedit to get some ideas on how to create and how PKGBUILD works (a.k.a. follow the instructions for gedit to see what's happening).
In my studies I was required to learn Haskell by myself, and to code in Haskell. I searched a lot about how to install plugins for Haskell, and I saw that it can be done on Eclipse development environment, version 3.7 or later. I downloaded this from here: http://filehippo.com/download_eclipse_classic_64/tech/11757/ (if you will go to this site it will be downloaded to your computer immediately!).
I followed up, step by step, after the installation-instructions, which I found here:
http://eclipsefp.github.io/install.html
I added the plugin's URL that was given there, and everything was fine.
But then, when I tried to start using EclipseFP by going to Window > Open perspective > Other... and selecting Haskell - I got the following error:
"problems opening perspective 'net.sf.eclipsefp.haskell.ui.HaskellPespective'".
And that it. I actually cannot using EclipseFP...
Does anyone have a solution?
please!
P.S. I also tried installing Haskell on intellij, as someone explained here, but it didn't work either. I didn't knew how to actually open a Haskell program.
Thanks again!
EclipseFP is no longer an active project, so you'll struggle to get support. Most people who use Haskell use emacs or vim. You'll probably find Atom easier to get started with though. Atom with the following packages works for me:
autocomplete-haskell
haskell-ghc-mod
haskell-hoogle
ide-haskell (this is the main package)
ide-haskell-cabal
ide-haskell-repl
language-haskell
As GarethR says, EclipseFP is no longer active. You might also look at Leksah, which is purpose-written in Haskell for Haskell.
I started using Haskell today and am following the tutorial through learnyouahaskell.com. However, in the tutorial all of their syntax automatically gets colored in the terminal. I am using Command Prompt through ConEmu and was wondering if there was any way that I could also get this coloring (easily). I've been looking for downloads or suggestions online and couldn't find anything. I have Notepadd++ for when I want to make .hs files, but nothing for the terminal itself once I initialize ghci.
I would suggest using Emacs with haskell-mode. I'm a Emacs fan, and I just started exploring Haskell too, haskell-mode works perfectly. I don't know if there is something like this for Notepad++.
Here is full list of editors that support Haskell highlighting. As for terminal colouring, I doubt that it will be easy on Windows (you're on windows, right?), you need an IDE.