First time here? Check out the FAQ!

bai's profile - activity

2024-03-05 09:23:18 -0500 received badge Famous Question (source)
2024-02-15 09:38:33 -0500 marked best answer Auto imports path config

I use auto imports feature a lot, it can search the python library path and import the name. In my project, there are also lots of symbol I want to use, but auto imports can't find them.

Is there a way to let auto imports find the project symbol? Pycharm can find them and import project based module name correctly.

2024-02-15 09:38:15 -0500 received badge Notable Question (source)
2024-02-15 09:38:15 -0500 received badge Popular Question (source)
2024-02-04 03:30:52 -0500 asked a question Auto imports path config

auto imports path config I use auto imports feature a lot, it can search the python library path and import the name. In

2023-12-07 08:21:41 -0500 received badge Popular Question (source)
2023-10-22 02:38:48 -0500 marked best answer Generate docker id issue

Wing pro will produce a docker container id like this: _wing_

But one tool I use frequently named mutagen use this id to sync docker files. Can I set an id without "wing_xxx"? For examle, my container id is "my-fastapi", not "my-fastapi_wing_abcd". I must recreate mutagen session when I use wing pro docker feature, the generated id changed if I stop the container.

2023-10-22 02:38:35 -0500 received badge Notable Question (source)
2023-10-20 17:03:35 -0500 received badge Popular Question (source)
2023-10-20 02:43:39 -0500 edited question Generate docker id issue

Docker id issue Wing pro will produce a docker container id like this: _wing_ But one tool I use frequently named muta

2023-10-20 02:42:41 -0500 edited question Generate docker id issue

Docker id issue Wing pro will produce a docker container id like this: _wing_ But one tool I use frequently named muta

2023-10-20 01:02:31 -0500 asked a question Generate docker id issue

Docker id issue Wing pro will produce a docker container id like this: _wing_ But one tool I use frequently named muta

2023-09-12 01:15:13 -0500 marked best answer Boto3 autocomplete issue

When I use aws sdk, boto3, I can't get autocomplete function. For example,

import boto3

c = boto3.client("dynamodb")

c.|

| is the cursor position. In python shell, it will popup a menu with all functions about client, but in the editor, it will not show anything.

2023-08-29 03:05:07 -0500 edited question Boto3 autocomplete issue

Boto3 autocomplete issue When I use aws sdk, boto3, I can't get autocomplete function. For example, import boto3 c =

2023-08-29 03:03:36 -0500 asked a question Boto3 autocomplete issue

Boto3 autocomplete issue When I use aws sdk, boto3, I can't get autocomplete function. For example, import boto3 c =

2022-11-14 08:05:54 -0500 marked best answer Use alt-n and alt-p to navigate repl history

I use alt n, alt p in emacs repl. alt n is next history item and alt p is previous history item in repl.

Can I use these two key mapping in wing pro? I didn't find the right command to do such thing. There is only repl-ctrl-up command.

2022-11-05 06:03:34 -0500 edited question Use alt-n and alt-p to navigate repl history

use alt-n and alt-p to nagivate repl history. I use alt n, alt p in emacs repl. alt n is next history item and alt p is

2022-11-05 05:21:54 -0500 asked a question Use alt-n and alt-p to navigate repl history

use alt-n and alt-p to nagivate repl history. I use alt n, alt p in emacs repl. alt n is next history item and alt p is

2022-09-22 12:49:56 -0500 marked best answer yapf indent setting

I use wingpro yapf to format files, but the indent of yapf is always 4 spaces.

My project folder has a yapf config file and I must use 2 spaces indent setting, I try to use yapf in the command line, it works well. So I use os command named yapf to finish the job, but I hope interal yapf support can read the config file and use indent correctly.

I use wing pro v7. I am not sure if v8 fix the problem.

2022-09-22 10:50:18 -0500 received badge Famous Question (source)
2022-09-09 02:07:14 -0500 received badge Notable Question (source)
2022-09-09 02:07:14 -0500 received badge Famous Question (source)
2022-08-05 19:04:18 -0500 received badge Notable Question (source)
2022-07-26 11:24:47 -0500 received badge Popular Question (source)
2022-07-21 18:38:09 -0500 commented answer yapf indent setting

I didn't use style argument, only execute "yapf" command in the project directory. I have a .style.yapf to controll the

2022-07-14 19:05:01 -0500 asked a question yapf indent setting

yapf indent setting I use wingpro yapf to format files, but the indent of yapf is always 4 spaces. My project folder ha

2022-07-14 18:57:43 -0500 received badge Popular Question (source)
2022-07-11 09:53:31 -0500 marked best answer Create a python project in a fast way

I create small python projects recently. They have only two or three files. I find the normal to create a project in wingpro is a little complex. First choose the python command, second add the directory, open a file windows, finally I must save the project file, I have to input the project name two times.

Is there a way to create a lightweight project? I think script or macro can help me, but no idea. The projects I want to create always use the same python env. I hope I only input the project name once and get the project work.

Maybe a command line agent is helpful too. I use vscode and sublime text, code <directory> or subl <diretory> can create a project very fast. But I can't find how to use or create a "wing" command to do such thing.

2022-07-01 01:40:35 -0500 asked a question Create a python project in a fast way

Create a python project in a fast way I create small python projects recently. They have only two or three files. I find

2022-01-12 13:58:53 -0500 marked best answer Wing scripts in a django project

I want to write a script to help me do some automation jobs in a django project. There is a model named "Post", I can use the code below to get all the fields:

from . import models

print(models.Post._meta.fields)

How can I use the code in a wing script? I wish I can access the django repl to get the data and use them back in the script. For example:

s = make_useful_string(models.Post._meta.fields)

insert_text(s)

2022-01-12 13:58:38 -0500 received badge Famous Question (source)
2022-01-10 18:40:05 -0500 commented answer Wing scripts in a django project

Thank you for the idea!

2022-01-10 09:17:12 -0500 received badge Popular Question (source)
2022-01-10 09:17:12 -0500 received badge Notable Question (source)
2022-01-08 19:44:24 -0500 edited question Wing scripts in a django project

Wing scripts in a django project I want to write a script to help me do some automation jobs in a django project. There

2022-01-08 19:44:04 -0500 edited question Wing scripts in a django project

Wing scripts in a django project I want to write a script to help me do some automation jobs in a django project. There

2022-01-08 19:44:04 -0500 received badge Editor (source)
2022-01-08 19:43:40 -0500 asked a question Wing scripts in a django project

Wing scripts in a django project I want to write a script to help me do some automation jobs in a django project. There

2020-12-19 21:35:16 -0500 received badge Notable Question (source)
2020-12-19 21:35:16 -0500 received badge Famous Question (source)
2020-12-19 21:35:16 -0500 received badge Popular Question (source)
2020-12-14 21:14:22 -0500 received badge Student (source)
2020-12-14 21:13:50 -0500 asked a question Wingpro 8.0 didn't show menu

Wingpro 8.0 didn't show menu I installed wingpro 8.01 and find an error message in the startup: Error executing command