[Github-comments] [geany/geany] IndentationError in python (#2098)

fightthepower notifications at xxxxx
Sun Mar 3 15:56:30 UTC 2019


I really love geany because its light weight and fast for writing python codes but I really hate how it handles indentation. When I send pyton code to vte **send selection to terminal** some times it throws **IndentationError: unexpected indent**. A simple example would be this function.

```
def load_data(mode='train'):
    mnist=input_data.read_data_sets("MNIST/",one_hot=True)
    if mode=='train':
        x_train,y_train,x_valid,y_valid=mnist.train.images, mnist.train.labels,mnist.validation.images, mnist.validation.labels
        return  x_train,y_train,x_valid,y_valid
    elif=='test':
	x_test,y_test=mnist.test.images, mnist.test.labels
    return x_test,y_test
```

This error occurs everywhere were I write multi-line indents and mostly happens with codes copied from elsewhere. Because of this I always have to use a second ide to correct these problems.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2098
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190303/3dd37723/attachment.html>


More information about the Github-comments mailing list