Forums

Development from mobile browsers

I've been having a terrible time trying to get started learning python. I figured PA would be perfect cause the IDE and consoles are built in to the website and I can just the site from my tablet at lunch or during downtime and tinker with ideas as they I came up with them. Unfortunately that has proven to be more difficult that originally anticipated.

In a console I can type, but can't backspace, arrow or delete. In the IDE I can't type at all.

Using a note 10.1, android 4.2, have tried "Internet" (default browser, chrome and dolphin. In and out of desktop mode.

Is there some setting I am missing or are mobile browsers out of bounds?

I'd love to use the in-built tools, but right now I just can't. I've been using droidedit to code, dropping those to dropbox, then reloading the project from the web tab until PA syncs.

What can I do to make this work? I'm hoping it will work so I can start paying you guys!

;edit; hmmmm. just got chrome reinstalled. it appears to be working... maybe this will work out! :D

@meteorainer: Is the verdict good after all?

Well, mostly. I can definitely work with it. Chrome on Android 4.2.1 allows me to do most of what I need to, except paste into the IDE.

The browser acts oddly when I select into the IDE and the CLI tho. It wants to zoom in instead of just placing the cursor. No idea why. Tried both on several different soft keyboards and browser.

That's odd -- we'll look into that.

Let me know if you want me to test somthing specific. Always up for some bug squashing.

On that note, the site basically doesn't work on ie8 (work computer limitation). I load in to consoles page even after manually changing the URL. The menu/tab bar doesn't load either.

Thanks, I'll post here (or would you rather I dropped you a line?) if we have any questions.

Re: IE8 -- right, I suspect a lot of stuff is going to be broken. It doesn't support WebSockets either, so even if we fixed the bulk of the site, the consoles wouldn't work :-(

Shoot me an email. Can't attach logs or screenshots here .

OK, thanks -- will do.

I'm too am having trouble using PythonAnywhere on an Android tablet. I have lots of trouble with the keyboard echoing. Backspace doesn't work. And some keyboards insist on capitalizing every letter typed. Most recently I tried with Chrome Beta and Next Browser on a Nexus 7 (2013) (Android 4.4.2). I have tried various other Android tablets with the same result.

Thanks for letting us know. Are you seeing those problems with the consoles, or in the editor, or both? Out of interest, do you have Firefox installed? We're still gathering data on where the problems are so that we can work out what we need to do to fix it.

Primarily I've been trying to use consoles (Python 2.7 and iPython 2.7), but the editor is not working either.

I tried Firefox with the console, and it's better than Chrome, but there are problems there too. e.g. Backspace doesn't work and I still get intermittent duplicate characters. (I type "print 22" -> "prI nntnt 22"

The editor fails differently.

In Chrome (with Google Keyboard) I can type ok, but backspace doesn't work. Text selection doesn't work and the insertion point is not placed correctly. In Firefox (with Google Keyboard) I type a word and it gets repeated across the line. e.g. "print" -> "pprprpriprinprintprint". Text selection doesn't work.

Finally, I have lots of trouble in landscape mode with both the console and editor with either browser.

These are with Nexus 7 (2013) (Android 4.4.2). But it also happens with a LG G-Pad 8.3 (Android 4.2.2).

OK, thanks for letting us know. We'll see what we can do. It might be tricky, though. We already include tags in our HTML to switch off the auto-complete functionality for the consoles and the editor, but unfortunately Android seems to ignore them. Possibly there's something else we haven't tried, though.

So what was the conclusion? Ive been trying to use my tablet for editor and still unable to scroll down

Still working on it -- it's proving harder than expected :-(

We could switch back to just using a normal HTML text area for the editor on the iPad, do you think that would be better?

No. I like it the way it is. I dont use ipad that much for it but if i did i could just use something like DroidEdit and justupload my file directly....it really isnt that much more of a step and Droid Edit works well

OK, thanks. I guess we just need to debug the editor we have rather than switching back then :-)

Hi, any progress on this topic? Scrolling feature is still not working. It would help just to have two buttons somewhere on editor page for scrolling up and down source code manually, like cursor up/down keys

Hi there -- we're doing some experiments in-house but no ETA, I'm afraid.

have raise this again. Really hope PA doing something so that can access thru mobile with better experience

I’m having difficlty using the ‘ character. It is not what’s expected by the parser on the ipad. Is there some setting or keyboard i have to use with the ipad and chrome browser to get it to work.? Not able to quote parameters etc.

That's a strange one. Does a character appear and the cause a syntax error?

Yes if I just use the single quote character on the iPad it will throw error. So I tried copying a quote from a previous line and it compiled successfully.

error when using iOS keyboard Tried it with both safari and chrome

https://ibb.co/mvG1wx

error

https://ibb.co/ii8EGx https://ibb.co/mvG1wx

Ok. I can think of 2 possibilities. 1. You're using the wrong character - instead of a single quote, you're typing a backtick or 2. iOS is converting a single quote into a "smart quote" that is then useless to Python.

Character I’m using is correct. But iOS keyboard is inserting character as per the image tried the google keyboard which prints the correct character.

just to clarify- where are you seeing this? is this when you type in the file editor? or in the console? and when you say you are using the google keyboard, do you mean that you switched to a new keyboard on the same ipad?

Typing in the editor window not console. Installed google keyboard and switched to the google keyboard to key in and it comes out correctly. doesn’t work with the standard iOS keyboard tried got English uk and us.

Typing in the editor window not console. Installed google keyboard and switched to the google keyboard to key in and it comes out correctly. doesn’t work with the standard iOS keyboard tried got English uk and us.

ok thanks! we will try to see if we can repro that. have you also tried other browsers?

Tried safari and chrome. Both have same issue. Just wondering is syntax highlighting available on the iPad browsers?

no- the standard file editor we have with syntax highlighting etc does not play well with ipad browsers, so we have purposely turned it off

We also cannot reproduce your backtick/single quotes problems in our experiements with our ipads. Do you know if this backtick problem is specific to your ipad?

I found the problem, when using a hardware keyboard, Logitech, i need to change the settings on the keyboard from Automatic to US. Then the quotes appear as single quote correctly.

Ah! Glad you worked it out.

mobile keyboard still not working correctly. Is there any solution

Try to install and use Hacker's Keyboard. Using it has solved issues with key entry for other users.

Hello, i can't use code completion in jupyter notebook on a samsung galaxy s23+ smartphone, running android 14 and either kiwi browser or chrome browser. When i type the dot after an object, the autocomplete menu doesn't appear. As the samsung keyboard doesn't have the tab key, i downloaded an android app named coding keyboard with the tab key. When i press the tab key in the cell after the dot, it just insert the tab arrow in the cell. When i do the same on my pc, the autocomplete menu appears....

Same question for the shift tab command that shoud show the help on a fonction, i don't know how to do it in chrome or dolphin on my smartphone. I would love to use pythonanywhere whith my smartphone when i'm on the move in the subway or other situations where the pc is not an option. Please help if you have a solution.

Autocomplete with tab key works on mobile firefox (but not mobile chrome nor mobile kiwi browser) + coding keyboard app (witch provide a key tab), with pythonanywhere notebooks. But still i don't know how to get function signatures with the equivalent of shift + tab on pc. the coding keyboard app provide only a caplock key, not a shift key, so i can't do shift + tab ... I can still type "?" after the function and run the cell, but it takes a little more time...

Thanks for sharing what you discovered about the differences between browsers! For other issues -- did you try installing a different keyboard for your device as @glenn suggested?

You're welcome. Yes but "hacker's keyboard" is not available (no more supported) in the google playstore for android 14, so i installed the "coding keyboard" instead. It provides a tab key, wich my default android samsung keyboard does not.

And it does not provide the "shift" key? That would be strange! Or is it not possible to send "shift+tab" combo on it?

no shift key, only a caplock key. If anybody knows an android keyboard with tab key AND shift key i'm interested ;-)

coding keyboard picture

You could try installing the Hacker's Keyboard from F-Droid.

Thank you, it works !!!