ipython / ipython/ipykernel

input splitter depreciation

Ouverte
#502 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
734
Forks
412
Merge moyen
1 j 5 h
PR mergées (30 j)
8

Description

I had a constant warning using python within spyder4 console:

> DeprecationWarning: `input_splitter` is deprecated since IPython 7.0, prefer `input_transformer_manager`.

and ended up manually replacing l.454 of ipkernel.py
`status, indent_spaces = self.shell.input_splitter.check_complete(code)`
with
`status, indent_spaces = self.shell.input_transformer_manager.check_complete(code)`
to solve my problem.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Inspect ipkernel.py around line 454 and confirm how the kernel checks whether input is complete. Replace the deprecated input_splitter usage with input_transformer_manager as described, then verify that the deprecation warning is gone and input handling still behaves correctly.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
jupyter, python
Domaine
tooling
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.