Share your repls and programming experiences

← Back to all posts
pyIDE
[deleted]

:0 its on trending how

ok, why do you people enjoy this?

am i using the src folder properly?

An IDE made completely in python. This took me some time to make, and how to
following features

  • Debugging
  • Saving your work
  • Running your code
  • Lexing
  • auto-suggest from history
  • Suggestion bar thing that shows the keywords (global keyword not included)

What ill be adding soon:

  • Function key inputs (press f1 for this or that)
  • Language support for more languages

Note: You have to add a new line to the end of your current line in order for it run/save the last line of your code. You also have to press control-c in order to go down into the menu

If you have any suggestions, let me know in the comments.
@bramley helped make the thing and did some bug testing.

update 0.0.7:

  • Runs on both linux and windows. (for windows, I will provide an EXE)
  • Support for raku/perl 6, although running it is broken. If you know how to fix, let me know.

update 0.0.8:

  • SH/bash files are now supported
  • Lexing now added for bash
  • Upcoming: Examples, and opening files, along with external python packages

update 0.0.9:

  • support for javascript / node.js (@PdanielY you requested this). It cannot be ran however
  • Lexing for javascript/node.js

Now accepting new languages. In order for a language to be added, it has to pass the following criteria:
1. Be able to be executed in the shell
2. Be able to run in the shell
Example:
python can be executed in the shell, by running a. exec(*insert commands*) or b. python insert file name here

also, maybe .bat file's coming soon

Certified E by @MrEconomical

Commentshotnewtop
PDanielY (979)

Upvote this comment for nodejs support

[deleted]

@PDanielY its coming soon, but I need help with polygott repls: https://repl.it/talk/ask/polygott-python-import-error/24832

[deleted]

@PDanielY added js support

enigma_dev (7080)

Woah this is crazy good!

Warhawk947 (523)

suddenly warhawkOS doesn't feel so good

MrEconomical (2201)

this is actually good
much E

CodeSalvageON (519)

More people should upvote this.

[deleted]

@CodeSalvageON thanks...

[deleted]

@Andi_Chin ok. im adding in a few days (currently working on another project)

ChezCoder (1481)

for python, true and false are lower case or it will cause an error. Changing your src.wordCompleter file from True and False in the python list to true and false.

[deleted]

@ChezCoder true and false in python are capitalized (the first letter)

ChezCoder (1481)

this is actually sick, auto fill blew my mind

ChezCoder (1481)

wow this even has DEBUG MODE UNLIKE COUGH COUGH REPLIT

ChezCoder (1481)

episode 3 of ChezCoder's discoveryys:

  • One i don't know how to english
  • Two try scrolling in the textbox when it prompts you to choose a language
PokemonCoder (2)

amazing, make a tkinter version so I can use it as an app.

[deleted]

@PokemonCoder. I cant. Prompt_toolkit provides most of the things that this has to offer, including lexing and completion. If you want to use this as a EXE, you can convert it using auto_py_to_exe.

[deleted]

@PokemonCoder You can download the repl by going to https://repl.it/@TaylorLiang/thing3.zip . Then download python, clikc the add the root variable checkbox, and execute main.exe

SixBeeps (2520)

Ah yes, my favorite IDE: thing3.
For real though great job on this! It feels like I'm using an actual code editor like vi or something. Can you make numbers have a different color other than gray?

[deleted]

@niorg2606 ill try. Currently, I'm adding HTML support. I'll add it after that

MatthewDoan1 (336)

This is... incredible.

bgrubert (143)

This is really impressive! Congratulations!

[deleted]

@bgrubert thanks!

AdCharity (1270)

does it use a prompt toolkit or something like that?

[deleted]

@AdCharity yes, it provides most of the features, like auto-suggestion from history. The lexing is provided by prompt_toolkit and pygments

theangryepicbanana (1635)

Add Raku and I will upvote ;)

theangryepicbanana (1635)

@TaylorLiang Raku is a highly capable language with tons of cool features that I use (on my computer and here on repl.it)

[deleted]

@theangryepicbanana is there any way to execute it on the shell? (like python foo.py)

theangryepicbanana (1635)

@TaylorLiang perl6 program.p6 runs a file and perl6 -e "..." runs a line of code

[deleted]

@theangryepicbanana ok. ill add it tomorrow! can you also provide the keywords for it (for suggestions) exculding global if it has it

theangryepicbanana (1635)

@TaylorLiang well Raku has a notably extensive amount of builtins, but https://docs.raku.org/language/syntax should give you a basic idea of what is in the language

theangryepicbanana (1635)

@TaylorLiang no problem. there's also a quick python-to-raku guide if that'd help since it compares some of python's syntax to raku's

[deleted]

@theangryepicbanana Raku support added! Just type in p6 as a file extension at the beginning, and begin coding!
edit: wont work. fixing

theangryepicbanana (1635)

@TaylorLiang wow that's actually really good. Someone that would be nice is string interpolation (like python's f-strings) for Raku. Not necessary but wouldn't be all that difficult (?). Awesome job tho

[deleted]

@theangryepicbanana I dont know how to add string interpolation to extra languages.

theangryepicbanana (1635)

@TaylorLiang ah gotcha. what you'd basically have to do is add interpolation rules that come into effect after strings are highlighted (if that makes any sense)

[deleted]

@theangryepicbanana I have no idea what that means. Also, right now im trying to support bash. (oh, and do you know how to run it? I says its not a command)

theangryepicbanana (1635)

@TaylorLiang bash just uses the bash command for normal files, and bash -c for a line of code

[deleted]

@theangryepicbanana no i mean how do I run p6 files. It says command not found

theangryepicbanana (1635)

@TaylorLiang ohhh you know what? I don't think the python repls come with raku. afaik polygott has all the languages available on repl.it, so if you'd like you could move your project to a polygott repl

[deleted]