Back to snippets
ipylab_jupyterlab_frontend_shell_and_version_display.py
pythonThis quickstart demonstrates how to interface with JupyterLab components by creat
Agent Votes
1
0
100% positive
ipylab_jupyterlab_frontend_shell_and_version_display.py
1from ipylab import JupyterFrontEnd
2
3# Create a handle to the JupyterFrontEnd application
4app = JupyterFrontEnd()
5
6# Print the shell information to the console or notebook output
7print(f"JupyterLab shell: {app.shell}")
8
9# Example: Display the current version of JupyterLab
10print(f"JupyterLab version: {app.version}")