Ask coding questions

← Back to all posts
6
Code doesn't run
GabrieleRomagno (10)

It happens regularly that the python code i am writing simply doesn't run. I try to stop and nothing happens. I refresh the page i get the same problem. Few hours later i try and everything runs smoothly.
I really would like to use Repl but i am having so many headheache that i am tempted to find another solution :(

Commentshotnewtop
3
reddyforit (2)

its happening to me now as well

2
githier (1)

Hello all, my html,css, js code is not running now. How can I fix this?
Thank you

3
amasad (1224)

Hey @GabrieleRomagno, Repl.it CEO here. There was an outage by Google Cloud, our provider and that's why things didn't work. Everything back up now.

We take service reliability very seriously so if this happens again, let me know directly: [email protected]

1
GabrieleRomagno (10)

@amasad ok great. In case i have any other issue i will let you know. Congratulation for the great platform!

1
zaccandels (0)

@amasad I'm having the same problem. Any time I try to run a python script nothing appears in the console.

1
amasad (1224)

@zaccandels hey there for matplotlib you need to save it to an image for now. We're working on fixing this. https://repl.it/site/docs/repls/python-plots
Interactive Python Plots - Repl.it

2
OwenBradstreet (79)

I found this to happen sometimes too. An easy fix is to just close your browser and reopen it, and use CTRL+SHIFT+T to open your old pages again - seems to work. Hope this helped.

2
GabrieleRomagno (10)

@OwenBradstreet thanks i will try. Sometime also the syntax in the new file doesn't get recognized.... functions are not alighted like if the code is simply text. Still a bug or am i doing something wrong

3
OwenBradstreet (79)

@GabrieleRomagno When you create the new file, are you adding the extension (.py) to the end? If not, it will just be a blank file format.

PS: If this is helpful can you upvote? Thanks!

1
Zonnielilbro (0)

My code isn't running period. Even after refreshing and waiting hours, my python code is just not running. I am able to stop it, but when I run it, nothing happens. Even when I simply do print('Hello World'), it doesn't print it.

1
icy_1 (0)

It's usually quite good. Just today maybe they're overloaded, as I experienced compiler loading and execution problems. I know locally for me east coast USA, there is currently a hurricane/flash flood, etc., maybe related.

1
GabrieleRomagno (10)

i am located in EU so i don't think that is the problem @icy_1.
Maybe i am doing something wrong. To run a code i should simply select a file and ctrl+enter? is only the "main" file played?
These are probably stupid questions but are there some tutorials where i could get a better feeling of how to use repl?
thanks

1
icy_1 (0)

@GabrieleRomagno since it ran for you a few hours later, that's why I suspect the server experienced overload.

For python I think typically you define a main function and add a bit of protection against automatic running if imported as a module.

Example https://repl.it/@icy_1/FelineGrouchyPrintablecharacter

(I give up trying to write comments in code... i tried <pre> <code> [code]... )

If you had both the files as in example, the main() function would run.