omz / pythonista-issues Goto Github PK
View Code? Open in Web Editor NEWIssue tracker for Pythonista (iOS)
Issue tracker for Pythonista (iOS)
Unlike normal name and attribute suggestions.
I know you're using an external library to get completions for module names, so maybe this isn't possible.
The editor should have a way of telling changes using git (though using git is something you have to figure out yourself.)
When creating a new file with the "Plain Text" template, and entering a name that includes an extension (like .csv
for example), that extension should probably be preserved instead of replacing it with .txt
.
CFFI is an interface between Python and C - like ctypes
, only better and easier to use. CFFI is largely written in pure Python, so it is possible to use CFFI with ctypes
as a backend (which I've been doing for a while) but this is not officially supported. The native C backend is the officially supported way of using CFFI, and it provides some features that the ctypes
backend doesn't have, such as caching parsed data type/variable/function definitions. And the native backend is probably faster than the ctypes
backend.
Could we have a way to forcibly terminate a script, even if it's catching KeyboardInterrupt
exceptions? I've encountered scripts in the wild that are almost impossible to stop from Pythonista.
This could, perhaps, be activated via a long press on the [x]
button.
the python 2 interpreter in pythonista 3 crashes when autocompleting matplotlib commands from the editor.
#!python2
import matplotlib.pyplot as plt
Saving the file, reopening it, the.
typing plt.
on the next line causes a very long wait while matplot lib is i ported by jedi. Finally, when jedi is done importing, pythonista crashes, Segmentation fault, the uncaughtexceptionhandler does not return anything.
Related: #40
e.g Jack's folder
. files under this folder cannot be run from the editor
I just think any Libs you create such as dialogs should be presented using the present func/method. Of course I think you should be able to use the new editor functions as present theme. I am guessing that these methods will be included into the present function at sometime.
I have just downloaded the app and did not see any new notification widget got added. Does anybody have this issue?
At the moment the editor
module's tab support is very limited - the make_new_file
and open_file
functions take a new_tab
argument, but there is no way to manage tabs in any other way. What should be possible:
editor.get_tabs
function that returns a list of Tab
objects, which have functions of the editor
module as methods that operate on that tab instead of the default one, such as get_path
, get_text
, annotate_line
, etc.Tab
object.When using an external keyboard, the code completions always use the standard "Menlo" font, but their size adapts to the default (user-selected) editor font, which can lead to rows in the completion list being too large or text being truncated, if the editor font has significantly different metrics.
_get_editor_tab
and perhaps a few others are only directly available in the py3 editor
module.
It should be possible to select multiple files in the Trash and restore or permanently delete all of them at once.
https://forum.omz-software.com/topic/1946/pythonista-1-6-beta/26
Links in the documentation and web browser should have an "Open in New Tab" option when long-pressed. And if a web browser tab is already open, webbrowser.open
should make a new tab instead of replacing the existing one. (Or maybe this should be controlled by a keyword argument like with editor tabs.)
The pandas
library would allow for more powerful data analysis for Pythonista, and is a much requested feature:
>>> import notification
>>> help(notification.schedule)
Help on function schedule in module notification:
schedule(message, delay=0, sound_name=None, action_url=None)
Note: Sounds from the 'digital' and 'game' collections ate supported
Out[0] = None
(sorry about the nitpicking :)
)
In the manually created table of contents for the ui
module documentation, the links to ImageView
and Label
are listed twice.
From this forum thread: https://forum.omz-software.com/topic/3233/v2-0-vs-v2-1-hard-crash-using-reserved-var-names
Going forward to 2.1 from 2.0, I have a bunch of "hard crashes" (direct go back to ios, no error, no message) when using certain var names in my scripts (working on 2.0)
I had tracked the issue and discovered that vars names like "self.target" in scene produce 100% the crash, but using "self.Target" works.
[...]
It looks like to crash only if files had been created with 2.0 using the Game/Animation template. If the file is created with 2.1 with the template it works.If the file is edited using Sublime Text on Mac, it works after transfer (via drop box) on iPhone
[...]
Minimal example that also crashes 2.1:
import scene
class MyScene(scene.Scene):
def setup(self):
self.target = scene.SpriteNode('iob:alert_circled_256', parent=self)
if __name__ == '__main__':
scene.run(MyScene(), show_fps=False)
The implementation of these methods is completely broken in 3.0 and 2.1 (schedule
and cancel_all
work).
The Release Notes button in empty tabs opens the documentation panel, but doesn't show the release notes page.
The scipy
library is a scientific computing library for Python. It integrates nicely with numpy
, which is already included in Pythonista.
Including scipy
with Pythonista would mean we'd have all the dependencies in place for the easy inclusion of lots of really powerful libraries like:
https://forum.omz-software.com/topic/2747/python-3-x-progress-update/271
a few useful sections of the Python docs are included, but not easily accessible, i. e. you need to use search or the global index to get to them.
- Complete Table of Contents - this alone would be enough, then everything would be accessible.
- Python HOWTOs - this includes things like porting to Python 3 and Unicode which are useful for people new to Python 3, but also some generally useful tutorials.
- FAQs - needless to say, those are always good to have.
- Things related to Python's C API - some things are included, some aren't. Of course those aren't of interest to the average user, but definitely useful to the non-average user trying to call the Python 2 API from Python 3 and such. :) As mentioned above, if the TOC were linked from the main page of the docs, then this would also be accessible without needing to clutter up the main page.
We discussed a Pythonista file picker a while ago in this forum thread.
@omz said:
I think this could be a useful addition to the
dialogs
module.
Then you came up with an awesome solution to this, but I don't think it ever got added to the dialogs
module. Could you add this to dialogs
?
https://forum.omz-software.com/topic/2747/python-3-x-progress-update/364
Idea: add "show docstring", or else when using help on a non builtin, show the docstring. It might also be neat to show a "ghost" of the signature when typing a method to remind one of the arguments and ordering.
The Examples folder still contains examples of using the Notification Center widget, even though the widget was removed in the release version (for those not familiar: it was a feature that was beta-tested, but there were too many stability issues with it).
When a tab shows a file in "info" mode (with the small thumbnail, name and type description, and the "Open In"/"Edit as Text" buttons) editor.get_path()
always returns None
instead of the path to the file.
The file browser should have some kind of tabbing support. At the moment it's kind of annoying to work in multiple directories at once, because you need to "walk" the entire way between them by hand. Having tabs in the file browser "sidebar" might not be that useful because there's so little space, so maybe there should be a way to open a folder in a normal editor tab.
The highlighting of matches in folder names isn't cleared completely when the search bar becomes empty.
Pythonista 3.0 (300018)
iOS 8.4.1 (32-bit iPad3,3)
ui.TableView().present('sheet')
followed by closing the tab results in a crash
Objective-C exception details:
NSInvalidArgumentException: -[SUITableView_PY3 willDismiss]: unrecognized selector sent to instance 0x163ba800
App Version: Pythonista 3 (300018)
If you create two files with the same name just different extension, example is Test.py and Test.txt
They appear in the My Template section of the new file screen as the same name so you don't know which one is which.
Is it possible to show file extensions in the file screen? Either as test.py or the file extension as the detail line of the cell just below to main label?
When typing _
as a name or attribute, the completion list disappears, even if there are names/attributes that start with _
. Other combinations, such as __
, work fine.
https://forum.omz-software.com/topic/3240/asyncio-doesn-t-work-in-pythonista-3
loop = asyncio.get_event_loop()
loop.close() # this will throw a RuntimeError on subsequent runs until Pythonista 3 is rebooted
RuntimeError: There is no current event loop in thread xxx
Workaround: Don't call loop.close()
@jsbain workaround: loop = asyncio.get_event_loop_policy().new_event_loop()
The editor takes a while to load large files, and it has some performance issues with very long lines. There should perhaps be a warning before opening a file that either exceeds a certain size, or has at least one line longer than a certain number of characters.
https://forum.omz-software.com/topic/2747/python-3-x-progress-update/362
when editing an already typed line, the autocompletion often inserts extra parens before an existing function call. For example, say I have this line of code:
mylist.append("foo")Then I decide I want to use insert instead. I double-tap append, type ins, and hit
EnterTab to accept the suggestion. The output I get ismylist.insert()("foo")In this case I would expect it to detect the existing parens and not add extra ones.
(But hopefully the entire extended keyboard can just always be hidden when there is a BT keyboard active)
Pythonista uses 2.7.5 (released on 2013-05-15), the current latest version is 2.7.11 (released on 2015-12-05), and 2.7.12 is coming soon (planned on 2016-06-25, that's next week!). Might be good to update to 2.7.12 once that comes out.
It would be nice to allow placeholders for the current date/time in user-created file templates.
I'm not sure how exactly this should be implemented (i.e. what format to use for different date formats etc.), or if there are things other than the current date that should be considered as possible placeholders in templates.
Support for cryptography would be nice so we can work with higher level encryption methods that are easier to use and secure unlike Crypto which is only low level. Also this gives us the ability to use PyOpenSSL for working with certificates.
Currently the two attributes do not exist, and when setting them the interactive console does not respect them and always displays the standard prompts instead.
https://forum.omz-software.com/topic/1946/pythonista-1-6-beta/63
For example, behind print(
and mystr +
completions appear correctly, but not behind os.listdir(
or os.sep +
This has been undocumented for a long time.
Invoking the "Help…" menu from the editor in version 2.1 always shows "no results", regardless of what's selected.
When completing something like @prop
, it should become @property
and not @property()
.
https://forum.omz-software.com/topic/2747/python-3-x-progress-update/361
sys.stdin
, sys.stdout
and sys.stderr
do not have isatty
or fileno
methods, which are required by some command-line scripts. isatty
should probably return True
(the console is interactive and has limited terminal-like features) and fileno
should return 0
, 1
and 2
respectively (the file descriptors of the real standard streams).
It'd be awesome if OpenCV could be compiled for Pythonista. There are existing Python bindings in the cv2
module, and also Objective-C bindings. I don't know how difficult it would be to get this working on Pythonista, but it would certainly allow for some impressive applications.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.