First time here? Check out the FAQ!

hongyi-zhao's profile - activity

2024-05-07 08:36:07 -0500 received badge Notable Question (source)
2024-05-07 08:36:07 -0500 received badge Famous Question (source)
2024-05-07 08:36:06 -0500 received badge Famous Question (source)
2024-04-12 20:44:54 -0500 received badge Notable Question (source)
2024-04-12 20:44:54 -0500 received badge Popular Question (source)
2024-04-11 21:19:16 -0500 commented answer Use a 3-party openai provider.

See https://docs.qq.com/sheet/DUlRsc3VaZEtnUWJh?tab=BB08J2

2024-04-09 04:40:56 -0500 asked a question Use a 3-party openai provider.

Use a 3-party openai provider. It seems that the latest Wingpro version still doesn't let me use a 3-party openai provid

2024-04-05 00:30:34 -0500 received badge Popular Question (source)
2024-04-05 00:30:34 -0500 received badge Notable Question (source)
2024-03-19 08:51:50 -0500 received badge Popular Question (source)
2024-03-19 08:51:50 -0500 received badge Notable Question (source)
2024-03-19 08:51:50 -0500 received badge Famous Question (source)
2024-03-08 22:28:54 -0500 commented answer General: Unavailable Commands: debug-hide-value-tips

Very Strange. After I reboot the computer, Shift + Space can work now. I don't know why. P.S. I removed the Shift-F7 bin

2024-03-08 18:35:47 -0500 commented answer General: Unavailable Commands: debug-hide-value-tips

I have sent the bug report again.

2024-03-08 18:04:47 -0500 answered a question General: Unavailable Commands: debug-hide-value-tips

I've sent the report once more.

2024-03-08 08:49:09 -0500 commented answer General: Unavailable Commands: debug-hide-value-tips

I upgrade to the latest version now, and the problem occurs again. Furthermore, there is no Debugger > Advanced >

2024-03-08 05:43:54 -0500 commented answer General: Unavailable Commands: debug-hide-value-tips

I upgrad to the latest version now, and the problem occurs again. Furthmore, there is no Debugger > Advanced > Ani

2024-03-08 05:30:54 -0500 received badge Popular Question (source)
2024-03-06 07:20:34 -0500 marked best answer Obtain the pycharm style block comment.

In Wing, I want to obtain the pycharm style block comment, say, for the following code block snippet in a class:

def measure_strain(self) -> float:
    """Measures the average strain on bond lengths on both substructures."""
    bond_lengths = self.bond_lengths
    bottom_strain = []
    top_strain = []
    for (k1, b1) in bond_lengths.items():
        for k3, b3 in self.bbl.items():
            if (k3 == k1) or (k3[::-1] == k1):
                d = np.abs((b3 - b1)) / b1 * 100
                bottom_strain.append(d)
        for k3, b3 in self.tbl.items():
            if (k3 == k1) or (k3[::-1] == k1):
                d = np.abs((b3 - b1)) / b1 * 100
                top_strain.append(d)
    strain = np.average(bottom_strain) + np.average(top_strain)
    return strain

In wing, the result is as following with the # Indented PEP 8 Style Comment

# def measure_strain(self) -> float:
    # """Measures the average strain on bond lengths on both substructures."""
    # bond_lengths = self.bond_lengths
    # bottom_strain = []
    # top_strain = []
    # for (k1, b1) in bond_lengths.items():
        # for k3, b3 in self.bbl.items():
            # if (k3 == k1) or (k3[::-1] == k1):
                # d = np.abs((b3 - b1)) / b1 * 100
                # bottom_strain.append(d)
        # for k3, b3 in self.tbl.items():
            # if (k3 == k1) or (k3[::-1] == k1):
                # d = np.abs((b3 - b1)) / b1 * 100
                # top_strain.append(d)
    # strain = np.average(bottom_strain) + np.average(top_strain)
    # return strain

But I want to obtain the pycharm style block comment as follows:

# def measure_strain(self) -> float:
#     """Measures the average strain on bond lengths on both substructures."""
#     bond_lengths = self.bond_lengths
#     bottom_strain = []
#     top_strain = []
#     for (k1, b1) in bond_lengths.items():
#         for k3, b3 in self.bbl.items():
#             if (k3 == k1) or (k3[::-1] == k1):
#                 d = np.abs((b3 - b1)) / b1 * 100
#                 bottom_strain.append(d)
#         for k3, b3 in self.tbl.items():
#             if (k3 == k1) or (k3[::-1] == k1):
#                 d = np.abs((b3 - b1)) / b1 * 100
#                 top_strain.append(d)
#     strain = np.average(bottom_strain) + np.average(top_strain)
#     return strain
2024-03-05 18:24:35 -0500 commented question Find operation with regexp support.

No, no, I mean the general case with regexp feature, say, searching with ab.*cd.*efand so on.

2024-03-05 09:19:26 -0500 received badge Popular Question (source)
2024-03-05 09:19:26 -0500 received badge Famous Question (source)
2024-03-05 09:19:26 -0500 received badge Notable Question (source)
2024-03-03 01:14:06 -0500 commented question Find operation with regexp support.

I mean the fuzzy search, e.g., ab.* for filtering out all symbols starting with ab.

2024-03-02 22:37:33 -0500 marked best answer Compared to PyCharm, Wing's "Stack Data" can only provide very limited data.

When running this script in pycharm and wing, I see very limited information in debug mode for the "structure" in wing compared to the debug data I saw on PyCharm, as shown below:

In wing:

image description

In pycharm:

image description

So, how can I see the same rich debugging data in wing?

Regards, Zhao

2024-03-02 22:37:18 -0500 received badge Self-Learner ( source )
2024-03-02 20:29:32 -0500 asked a question Find operation with regexp support.

Find operation with regexp support. I wonder if we can let Wing support find, say, Find Symbol, with the regexp feature

2024-03-02 19:24:48 -0500 edited answer Compared to PyCharm, Wing's "Stack Data" can only provide very limited data.

I tried combinations of different options and found that the following options can largely achieve the effect of PyCharm

2024-03-02 19:24:29 -0500 edited answer Compared to PyCharm, Wing's "Stack Data" can only provide very limited data.

I tried combinations of different options and found that the following options can largely achieve the effect of PyCharm

2024-03-02 19:11:51 -0500 answered a question Compared to PyCharm, Wing's "Stack Data" can only provide very limited data.

I tried a combination of different options and found the following to partially achieve pycharm's results: However, t

2024-03-02 19:11:51 -0500 received badge Rapid Responder ( source )
2024-03-02 14:28:07 -0500 received badge Self-Learner ( source )
2024-03-02 09:24:47 -0500 asked a question Compared to PyCharm, Wing's "Stack Data" can only provide very limited data.

Compared to PyCharm, Wing's "Stack Data" can only provide very limited data. When running this script in pycharm and win

2024-03-02 08:14:25 -0500 received badge Rapid Responder ( source )
2024-03-02 08:14:25 -0500 answered a question Obtain the pycharm style block comment.

For your information, you can see the following effect commented out by pycharm:

2024-03-02 08:11:33 -0500 commented answer Obtain the pycharm style block comment.

No. I don't want them always in "Column 0", instead, the comment symbol, aka, "#", is placed in the column where the ac

2024-03-02 02:52:34 -0500 asked a question Obtain the pycharm style block comment.

Obtain the pycharm style block comment. In Wing, I want to obtain the pycharm style block comment, say, for the followin

2024-02-27 18:45:33 -0500 commented answer Customizing the base url used to access OpenAI's API

How can I completely delete these files? Is the following command sufficient: $ sudo apt remove --purge wingpro10

2024-02-27 18:43:59 -0500 commented answer Customizing the base url used to access OpenAI's API

How can I completely delete these files?

2024-02-27 18:40:53 -0500 received badge Popular Question (source)
2024-02-27 08:45:06 -0500 marked best answer General: Unavailable Commands: debug-hide-value-tips

I'm using Wing Pro 10.0.1.3. In debug mode, when I hit Shift + Space, the tooltip cannot be activated, as shown below:

image description

Any tips for solving this problem?

Regards, Zhao

2024-02-27 08:38:40 -0500 marked best answer Customizing the base url used to access OpenAI's API

When using AI Assistant, can I customize Openai's third-party proxy or forwarding company URL instead of using Openai's official URL directly?

2024-02-26 18:36:24 -0500 commented answer General: Unavailable Commands: debug-hide-value-tips

Thank you. It works now.