In this section:
Prerequisites
Before you start working with UML diagrams, make sure that UML Support plugin is enabled. The plugin is bundled with PyCharm and activated by default. If it is not, enable the plugin as described in Enabling and Disabling Plugins.
Basics
You can invoke UML class diagram from different places:
- From the various tool windows.
- From the Navigation bar.
- From the Structure tool window.
- From the editor.
PyCharm displays UML diagrams in two modes:
- In a pop-up window.
- In a separate editor tab.
PyCharm makes is possible to choose diagram type:
- Python class diagram
- Django model dependency diagram (for the Django projects).
- Google App Engine model dependency diagram (for the Google App Engine projects).
Opening diagram
- Select the desired item, or open it in the editor.
- Do one of the following:
- On the context menu of the selection, click , and on the submenu, select the way you want to view the model: or .
- Press Ctrl+Shift+Alt+U or Ctrl+Alt+U.
- From the pop-up list, choose the diagram type:
The diagram is displayed in the editor tab or in the pop-up window: