Skip to content
Snippets Groups Projects

Make python shell dockable.

Merged Utkarsh Ayachit requested to merge utkarsh.ayachit/paraview:pythonshell_fixes into master
  1. Makes pqPythonShell a widget that is fairly self-contained. Now one can create as may pqPythonShell instances as needed.
  2. ParaView simply places a pqPythonShell in a dock widget to add Python shell to the application.
  3. pqPythonShell does not init Python immediately, but does so when the shell gets focus or attempts to execute some Python snippet.
  4. When load Python state, or run macros, they will now run in the global interpreter context, rather that in the Python shell.
  5. Cleanly handles capturing of output/error messages or input request coming from code executing in Python shell or else where e.g. macros, or loading of Python state.
Edited by Utkarsh Ayachit

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Errors:

    • commit 67d698cb references the commit 16323f5245b14eac2b7bbb0a66886c80b8b0abf1 at VTK, but it is not available on the tracked branch master; please make the commit available from the master branch first.
    • commit 7693cbbc is not allowed because the following files are not formatted according to the 'clang-format' check: Qt/ApplicationComponents/pqCommandLineOptionsBehavior.cxx. Post a comment ending in the line Do: reformat to rewrite the MR source branch automatically.

    Warnings:

    • the merge request is marked as a work-in-progress.

    The warnings do not need to be fixed, but it is recommended to do so.

    Please rewrite commits to fix the errors listed above (adding fixup commits will not resolve the errors) and force-push the branch again to update the merge request.

    Some messages may be temporary; please trigger the checks again if they have been resolved.

  • Utkarsh Ayachit changed the description

    changed the description

  • Do: reformat

  • This topic has been reformatted and pushed; please fetch from the repository before further development to use the new topic locally.

  • Kitware Robot added 2 commits

    added 2 commits

    • 8b7b401f - Making deprecations.
    • a7d9ba99 - Cleanup message capture in pqPythonShell.

    Compare with previous version

  • Errors:

    • commit a7d9ba99 references the commit 16323f5245b14eac2b7bbb0a66886c80b8b0abf1 at VTK, but it is not available on the tracked branch master; please make the commit available from the master branch first.

    Warnings:

    • the merge request is marked as a work-in-progress.

    The warnings do not need to be fixed, but it is recommended to do so.

    Please rewrite commits to fix the errors listed above (adding fixup commits will not resolve the errors) and force-push the branch again to update the merge request.

    Some messages may be temporary; please trigger the checks again if they have been resolved.

  • Utkarsh Ayachit marked the checklist item fix resetting when disconnected from server as completed

    marked the checklist item fix resetting when disconnected from server as completed

  • Utkarsh Ayachit added 4 commits

    added 4 commits

    • 5ac72945 - Remove reference to obsolete QtMessageHandlerBehavior.
    • e9118d7b - Add a dockable Python shell.
    • b25f4a05 - Making deprecations.
    • 145aa359 - Cleanup message capture in pqPythonShell.

    Compare with previous version

  • Errors:

    • commit 145aa359 is not allowed because the following files are not formatted according to the 'clang-format' check: Qt/Python/pqPythonManager.cxx. Post a comment ending in the line Do: reformat to rewrite the MR source branch automatically.
    • commit 145aa359 references the commit 16323f5245b14eac2b7bbb0a66886c80b8b0abf1 at VTK, but it is not available as a first-parent of the tracked branch master; please choose the commit where it was merged into the master branch.
    • commit b25f4a05 is not allowed because the following files are not formatted according to the 'clang-format' check: Qt/Python/pqPythonManager.cxx. Post a comment ending in the line Do: reformat to rewrite the MR source branch automatically.

    Warnings:

    • the merge request is marked as a work-in-progress.

    The warnings do not need to be fixed, but it is recommended to do so.

    Please rewrite commits to fix the errors listed above (adding fixup commits will not resolve the errors) and force-push the branch again to update the merge request.

  • Utkarsh Ayachit added 5 commits

    added 5 commits

    • 4d0a2bd1 - Add a dockable Python shell.
    • 3ee1db26 - Making deprecations.
    • 4e8549f7 - Cleanup message capture in pqPythonShell.
    • 4bb61890 - Remove dependency on pqCore in pqPythonDebugLeaksView.
    • 6cc26d55 - Remove unused headers.

    Compare with previous version

  • Errors:

    • commit 4bb61890 is not allowed because the following files are not formatted according to the 'clang-format' check: Qt/Python/pqPythonDebugLeaksView.h. Post a comment ending in the line Do: reformat to rewrite the MR source branch automatically.
    • commit 4e8549f7 references the commit 16323f5245b14eac2b7bbb0a66886c80b8b0abf1 at VTK, but it is not available as a first-parent of the tracked branch master; please choose the commit where it was merged into the master branch.
    • commit 4e8549f7 is not allowed because the following files are not formatted according to the 'clang-format' check: Qt/Python/pqPythonManager.cxx. Post a comment ending in the line Do: reformat to rewrite the MR source branch automatically.
    • commit 3ee1db26 is not allowed because the following files are not formatted according to the 'clang-format' check: Qt/Python/pqPythonManager.cxx. Post a comment ending in the line Do: reformat to rewrite the MR source branch automatically.
    • commit 4d0a2bd1 is not allowed because the following files are not formatted according to the 'clang-format' check: Qt/Python/pqPythonShell.h. Post a comment ending in the line Do: reformat to rewrite the MR source branch automatically.

    Warnings:

    • the merge request is marked as a work-in-progress.

    The warnings do not need to be fixed, but it is recommended to do so.

    Please rewrite commits to fix the errors listed above (adding fixup commits will not resolve the errors) and force-push the branch again to update the merge request.

  • Utkarsh Ayachit marked the checklist item make macros run under global interpretter as completed

    marked the checklist item make macros run under global interpretter as completed

  • Do: reformat

  • This topic has been reformatted and pushed; please fetch from the repository before further development to use the new topic locally.

  • Kitware Robot added 5 commits

    added 5 commits

    • 31c025ab - Add a dockable Python shell.
    • 24e6e088 - Making deprecations.
    • 9c80e880 - Cleanup message capture in pqPythonShell.
    • 7b5e5da3 - Remove dependency on pqCore in pqPythonDebugLeaksView.
    • e1ef0a58 - Remove unused headers.

    Compare with previous version

  • Errors:

    • commit 9c80e880 references the commit 16323f5245b14eac2b7bbb0a66886c80b8b0abf1 at VTK, but it is not available as a first-parent of the tracked branch master; please choose the commit where it was merged into the master branch.

    Warnings:

    • the merge request is marked as a work-in-progress.

    The warnings do not need to be fixed, but it is recommended to do so.

    Please rewrite commits to fix the errors listed above (adding fixup commits will not resolve the errors) and force-push the branch again to update the merge request.

  • Utkarsh Ayachit marked the checklist item handle prompts from global interpretter esp. when running macros. as completed

    marked the checklist item handle prompts from global interpretter esp. when running macros. as completed

  • Utkarsh Ayachit added 4 commits

    added 4 commits

    • b7f4c2f3 - Cleanup message capture in pqPythonShell.
    • 09711bec - Remove dependency on pqCore in pqPythonDebugLeaksView.
    • 217d74e1 - Remove unused headers.
    • 5dfa3435 - Handle python input request with executing macros/loading state.

    Compare with previous version

  • Utkarsh Ayachit changed the description

    changed the description

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading