# How to switch editor tabs with Python?

**URL:** <https://forums.unrealengine.com/t/how-to-switch-editor-tabs-with-python/1555062>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, question\
**Created:** [December 25, 2023, 3:31pm UTC](https://forums.unrealengine.com/t/how-to-switch-editor-tabs-with-python/1555062 "2023-12-25T15:31:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![9Evgeny9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@9Evgeny9](https://forums.unrealengine.com/u/9Evgeny9)\
**Post date:** [December 25, 2023, 3:31pm UTC](https://forums.unrealengine.com/t/how-to-switch-editor-tabs-with-python/1555062/1 "2023-12-25T15:31:51Z")

</div>

I can open asset in new tab with

```auto
 assets= [unreal.load_asset('/Game/myasset')]

 aes = unreal.get_editor_subsystem(unreal.AssetEditorSubsystem)
 aes.open_editor_for_assets(assets)

```

Asset opens in editor. Editor SWITCHES to this asset.

But how to switch back to main level asset?

 ![изображение](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/f/07fa4bf6e56f0a5c8a2d3d805d8a76ba6902ad4c.png)
