| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/IPython/core/magics/__pycache__/ |
Upload File : |
�
�@�cfY � �. � d Z ddlZddlmZ ddlZddlZddlmZ ddlZddl m
Z
ddlmZ ddl
mZmZ ddlmZ dd lmZmZmZmZ dd
lmZmZmZ ddlmZ ddlmZ G d
� de� � Z e G d� de� � � � Z!e G d� de!� � � � Z"dS )z(Implementation of basic magic functions.� N)�error)�pformat)�warn)�import_item)�magic_arguments�page)�
UsageError)�Magics�magics_class�
line_magic�
magic_escapes)�
format_screen�dedent�indent)�skip_doctest)�Structc �4 � e Zd Zdd�Zd� Zd� Zd� Zd� Zd� ZdS ) �
MagicsDisplayNc �* � |r|ng | _ || _ d S �N)�ignore�magics_manager)�selfr r s �;/usr/lib/python3/dist-packages/IPython/core/magics/basic.py�__init__zMagicsDisplay.__init__ s � � &�.�f�f�B���,����� c � � � t d }t d }� j }|� � � }d|d|z � t � fd�|d � � � D � � � � � � z dd|d|z � t � fd�|d � � � D � � � � � � z d|� � � g}d � |� � S )
z'The main implementation of the %lsmagic�line�cellzAvailable line magics:z c �, �� g | ]\ }}|�j v�|��S � �r ��.0�m�vr s �r �
<listcomp>z*MagicsDisplay._lsmagic.<locals>.<listcomp>! �, �� �.m�.m�.m�S�Q�q�WX�`d�`k�Wk�Wk�q�Wk�Wk�Wkr � zAvailable cell magics:c �, �� g | ]\ }}|�j v�|��S r! r"