Issues with Code Playground | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Issues with Code Playground

Does anyone else have issues trying to save python codes in the code playground? All I get is the never ending spin symbol of death.

26th Mar 2018, 10:33 AM
Adam
Adam - avatar
1 Réponse
+ 3
It's not a specific to Python issue... It's a website code playground issue, when connection with server will fail ^^ It could happened also in app, but app version let you retry after, while website never end the attempt... My workaround is in three steps: 1> keep the habit to copy my source code before attempting to save it 2> hack the page with JS injection (through address bar) to undisplay the overlay and be able again to access source code for copy it when I forgot to copy it before attempting to save (quite unsafe, as by setting invalid JS command in browser address bar will result to loose your work because a web search will be done instead of executing JS on the page) 3> reload the page, paste, try again to save, and when fail occur many times (not often, but sometimes), open code in app, paste and save from app before reloading the updated code in browser Snippet to remove the overlay info' box: javascript:(_=>{document.querySelector('.loadingOverlay').style.display='none';})(); "javascript:" is a special URI pseudo-scheme (as "http:", "ftp:") allowing JS execution through "href" attribute of <a> html anchor element, without reloading the page... Some browsers could not recognized it directly in address bar, but most do. However, behaviour of pasting such URI in address bar is quite inconsistency between browsers: some are removing the false-scheme, so you have to edit manually it to get it work (and not do a web search instead). My solution in this case, is to copy/paste the snippet with the right pseudo-scheme in front of wich I prepend a "_" (underline) to have only one char to delete rather than a dozen of char to add (and multiply the risk of misstyping it)...
26th Mar 2018, 2:33 PM
visph
visph - avatar