Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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

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

Hi,

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

According to the instructions here, 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: 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, 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 Wing only have tab-completion while wing cannot.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 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

Wing Tab-completion only have tab-completion while 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 in the script: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()

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.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