Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

importing .ipynb notebooks in Sagemath 9.4

Aperta
#55 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
jupyter-notebook, python
Ambito
tooling

Direzione di ricerca

Riprodurre l’importazione usando pyt.ipynb, salvato con i kernel Sagemath9.4 e Python3, seguendo l’esempio mostrato from ipynb.fs.full.pyt import *. Confrontare i metadati del notebook e determinare se l’importer debba supportare il formato del kernel SageMath; il completamento deve includere un risultato verificato per quel caso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Following https://stackoverflow.com/questions/44116194/import-a-function-from-another-ipynb-file
Python/Sagemath9.4/Jupyter error?
Using jupyter with kernel selections:sagemath9.4, python3
I found that the import works if the file pyt.ipynb is written with the Jupyter kernel Python3 selected, but can't be read if it's written from Sagemath9.4 kernel.
Is there a more correct way or is it a bug?
File pyt.ipynb to be imported

def factorial(n):
if n == 0:
    return 1
else:
    return n * factorial(n-1)

File for importing

from ipynb.fs.full.pyt import *
testing = factorial(5)
testing

Here is the diff output, comparing the python3 save and the sagemath9.4 save
diff pyt.ipynb pyt-python.ipynb

< "display_name": "SageMath 9.4",
< "language": "sage",
< "name": "sagemath"

'> "display_name": "Python 3",
'> "language": "python",
'> "name": "python3"

Lingua principale
Jupyter Notebook
Stelle
258
Fork
71
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ipython/ipynb

Tutte le issue di ipython/ipynb

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.