First time here? Check out the FAQ!

Revision history  [back]

Tab-completion only available when entering the debug mode for some python packages.

Hi,

I try to run the AiiDA-core python package with the example given here.

According to the instructions here: https://aiida.readthedocs.io/projects/aiida-core/en/latest/working_with_aiida/scripting.html#verdi-shell, I can use the verdi shell command to invoke a ipython shell which can do the completions correctly.

But when I edit the above mentioned script with wing, then the corresponding completions will be disabled. Say for the following code snippets:

from aiida import load_profile
load_profile()

from aiida.engine import submit
from aiida.orm import load_node, Code, Dict

code = Code.get_from_string("wannier90-3.1.0-wannier-manual")  # REPLACE <CODE LABEL>
# Prepare the builder to launch the calculation
builder = code.get_builder()

All of the builder.* part will not have completion suggestions. On the other hand, if I put the cursor at the end of the above code block and then running the code with Debug to Cursor ( Alt + F5 ). At the end, the corresponding completions will be enabled.

But how to enable the tab-completion without entering the debug mode?

Any hints for this problem?

Regards

Tab-completion only available when entering the debug mode for some python packages.

Hi,

I try to run the AiiDA-core python package with the example given here.

According to the instructions here: https://aiida.readthedocs.io/projects/aiida-core/en/latest/working_with_aiida/scripting.html#verdi-shell, I can use the verdi shell command to invoke a ipython shell which can do the completions correctly.

But when I edit the above mentioned script with wing, then the corresponding completions will be disabled. Say for the following code snippets:

from aiida import load_profile
load_profile()

from aiida.engine import submit
from aiida.orm import load_node, Code, Dict

code = Code.get_from_string("wannier90-3.1.0-wannier-manual")  # REPLACE <CODE LABEL>
# Prepare the builder to launch the calculation
builder = code.get_builder()

All of the builder.* part will not have completion suggestions. On the other hand, if I put the cursor at the end of the above code block and then running the code with Debug to Cursor ( Alt + F5 ). At the end, the corresponding completions will be enabled.

But how to enable the tab-completion without entering the debug mode?

Any hints for this problem?

Regards

Tab-completion only available when entering the debug mode for some python packages.

Hi,

I try to run the AiiDA-core python package with the example given here.

According to the instructions here: https://aiida.readthedocs.io/projects/aiida-core/en/latest/working_with_aiida/scripting.html#verdi-shell, I can use the verdi shell command to invoke a ipython shell which can do the completions correctly.

But when I edit the above mentioned script with wing, then the corresponding completions will be disabled. Say for the following code snippets:

from aiida import load_profile
load_profile()

from aiida.engine import submit
from aiida.orm import load_node, Code, Dict

code = Code.get_from_string("wannier90-3.1.0-wannier-manual")  # REPLACE <CODE LABEL>
# Prepare the builder to launch the calculation
builder = code.get_builder()

All of the builder.* part will not have completion suggestions. On the other hand, if I put the cursor at the end of the above code block and then running the code with Debug to Cursor ( Alt + F5 ). At the end, the corresponding completions will be enabled.

But how to enable the tab-completion without entering the debug mode?

Any hints for this problem?

Regards

Tab-completion Wing only available when have tab-completion while entering the debug mode for some python packages.

Hi,

I try to run the AiiDA-core python package with the example given here.

According to the instructions here: https://aiida.readthedocs.io/projects/aiida-core/en/latest/working_with_aiida/scripting.html#verdi-shell, I can use the verdi shell command to invoke a ipython shell which can do the completions correctly.

But when I edit the above mentioned script with wing, then the corresponding completions will be disabled. Say for the following code snippets:snippets in the script:

from aiida import load_profile
load_profile()

from aiida.engine import submit
from aiida.orm import load_node, Code, Dict

code = Code.get_from_string("wannier90-3.1.0-wannier-manual")  # REPLACE <CODE LABEL>
# Prepare the builder to launch the calculation
builder = code.get_builder()

builder.metadata.options.max_wallclock_seconds = 30 * 60  # 30 min
builder.metadata.options.resources = {"num_machines": 1}

builder.structure = structure
builder.projections = projections
builder.parameters = parameters
builder.kpoints = kpoints
builder.kpoint_path = kpoint_path

All of the builder.* part will not have completion suggestions. On the other hand, if I put the cursor at the end of the above code block and then running the code with Debug to Cursor ( Alt + F5 ). At the end, the corresponding completions will be enabled.

But how to enable the tab-completion without entering the debug mode?suggestions.

Any hints for this problem?

Regards

Wing only have Ipython can do the tab-completion while entering the debug mode for some python packages.wing cannot.

Hi,

I try to run the AiiDA-core python package with the example given here.

According to the instructions here: https://aiida.readthedocs.io/projects/aiida-core/en/latest/working_with_aiida/scripting.html#verdi-shell, I can use the verdi shell command to invoke a ipython shell which can do the completions correctly.

But when I edit the above mentioned script with wing, then the corresponding completions will be disabled. Say for the following code snippets in the script:

builder = code.get_builder()

builder.metadata.options.max_wallclock_seconds = 30 * 60  # 30 min
builder.metadata.options.resources = {"num_machines": 1}

builder.structure = structure
builder.projections = projections
builder.parameters = parameters
builder.kpoints = kpoints
builder.kpoint_path = kpoint_path

All of the builder.* part will not have completion suggestions.

Any hints for this problem?

Regards

Ipython can do the tab-completion while wing cannot.

Hi,

I try to run the AiiDA-core python package with the example given here.

According to the instructions here: https://aiida.readthedocs.io/projects/aiida-core/en/latest/working_with_aiida/scripting.html#verdi-shell, I can use the verdi shell command to invoke a ipython shell which can do the completions correctly.

But when I edit the above mentioned script with wing, then the corresponding completions will be disabled. Say for the following code snippets in the script:

builder = code.get_builder()

builder.metadata.options.max_wallclock_seconds = 30 * 60  # 30 min
builder.metadata.options.resources = {"num_machines": 1}

builder.structure = structure
builder.projections = projections
builder.parameters = parameters
builder.kpoints = kpoints
builder.kpoint_path = kpoint_path

All of the builder.* part will not have completion suggestions.

Any hints for this problem?

Regards

Ipython can do the tab-completion while wing cannot.

Hi,

I try to run the AiiDA-core python package with the example given here .

According to the instructions here: https://aiida.readthedocs.io/projects/aiida-core/en/latest/working_with_aiida/scripting.html#verdi-shell, I can use the verdi shell command to invoke a ipython shell which can do the completions correctly.

But when I edit the above mentioned script with wing, then the corresponding completions will be disabled. Say for the following code snippets in the script:

builder = code.get_builder()

builder.metadata.options.max_wallclock_seconds = 30 * 60  # 30 min
builder.metadata.options.resources = {"num_machines": 1}

builder.structure = structure
builder.projections = projections
builder.parameters = parameters
builder.kpoints = kpoints
builder.kpoint_path = kpoint_path

All of the builder.* part will not have completion suggestions.

Any hints for this problem?

Regards

Ipython can do the tab-completion while wing cannot.

Hi,

I try to run the AiiDA-core python package with the example given here here: https://aiida-tutorials.readthedocs.io/en/latest/_downloads/f061ae1c15c29f058cc28e52d6c50cdd/demo_wannier_calcjob.py .

According to the instructions here: https://aiida.readthedocs.io/projects/aiida-core/en/latest/working_with_aiida/scripting.html#verdi-shell, I can use the verdi shell command to invoke a ipython shell which can do the completions correctly.

But when I edit the above mentioned script with wing, then the corresponding completions will be disabled. Say for the following code snippets in the script:

builder = code.get_builder()

builder.metadata.options.max_wallclock_seconds = 30 * 60  # 30 min
builder.metadata.options.resources = {"num_machines": 1}

builder.structure = structure
builder.projections = projections
builder.parameters = parameters
builder.kpoints = kpoints
builder.kpoint_path = kpoint_path

All of the builder.* part will not have completion suggestions.

Any hints for this problem?

Regards

Ipython can do the tab-completion completion while wing cannot.

Hi,

I try to run the AiiDA-core python package with the example given here: https://aiida-tutorials.readthedocs.io/en/latest/_downloads/f061ae1c15c29f058cc28e52d6c50cdd/demo_wannier_calcjob.py here.

According to the instructions here: https://aiida.readthedocs.io/projects/aiida-core/en/latest/working_with_aiida/scripting.html#verdi-shell, here, I can use the verdi shell command to invoke a ipython shell which can do the completions correctly.

But when I edit the above mentioned script with wing, then the corresponding completions will be disabled. Say for the following code snippets in the script:

builder = code.get_builder()

builder.metadata.options.max_wallclock_seconds = 30 * 60  # 30 min
builder.metadata.options.resources = {"num_machines": 1}

builder.structure = structure
builder.projections = projections
builder.parameters = parameters
builder.kpoints = kpoints
builder.kpoint_path = kpoint_path

All of the builder.* part will not have completion suggestions.

Any hints for this problem?

Regards

Ipython can do the completion while wing cannot.

Hi,

I try to run the AiiDA-core python package with the example given here.

According to the instructions here, I can use the verdi shell command to invoke a ipython shell which can do the completions correctly.

But when I edit the above mentioned script with wing, then the corresponding completions will be disabled. Say for the following code snippets in the script:

builder = code.get_builder()

builder.metadata.options.max_wallclock_seconds = 30 * 60  # 30 min
builder.metadata.options.resources = {"num_machines": 1}

builder.structure = structure
builder.projections = projections
builder.parameters = parameters
builder.kpoints = kpoints
builder.kpoint_path = kpoint_path

All of the builder.* part will not have completion suggestions.

Any hints for this problem?

Regards