Format: application/x-python-code
1 o
2
3 ��h�3 � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl m
4 Z
5 ddlmZ ddl
6 mZmZmZmZ ddlmZ ddlmZ ddlmZmZmZmZ dd lmZ d
7 d� ZG dd
8 � d
9 e�ZeG dd� de��Z dS )z5Magic functions for running cells in various scripts.� N)�CalledProcessError)�Thread)�Any�Dict�List�default)�magic_arguments)�
10 _AsyncIOProxy)�Magics�
11 cell_magic�
12 line_magic�magics_class)� arg_splitc
13 C sb t jdtdd�t jdtdd�t jdddd �t jd
14 tdd�t jdd
15 ddd�g}|D ]}|| �} q(| S )z'single decorator for adding script argsz--outz�The variable in which to store stdout from the script.
16 If the script is backgrounded, this will be the stdout *pipe*,
17 instead of the stderr text itself and will not be auto closed.
18 )�type�helpz--errz�The variable in which to store stderr from the script.
19 If the script is backgrounded, this will be the stderr *pipe*,
20 instead of the stderr text itself and will not be autoclosed.
21 z--bg�
22 store_truez�Whether to run the script in the background.
23 If given, the only way to see the output of the command is
24 with --out/err.
25 )�actionr z--procztThe variable in which to store Popen instance.
26 This is used only when --bg option is given.
27 z--no-raise-error�store_false�raise_errorz�Whether you should raise an error message in addition to
28 a stream on stderr if you get a nonzero exit code.
29 )r �destr )r Zargument�str)�f�args�arg� r �Pc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/core/magics/script.py�script_args s0 ������#
30 r c @ s e Zd ZdS )�RaiseAfterInterruptN)�__name__�
31 __module__�__qualname__r r r r r F s r c s� e Zd ZU dZedd�Zedd�jdd�Zee d<