• Jobs
  • About Us
  • Jobs
    • Home
    • Jobs
    • Courses and challenges
  • Businesses
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

4.2K
Views
Deshabilitar advertencias en jupyter notebook

Recibo esta advertencia en el cuaderno jupyter.

 /anaconda3/lib/python3.6/site-packages/ipykernel_launcher.py:10: DeprecationWarning: object of type <class 'float'> cannot be safely interpreted as an integer. # Remove the CWD from sys.path while we load stuff. /anaconda3/lib/python3.6/site-packages/ipykernel_launcher.py:11: DeprecationWarning: object of type <class 'float'> cannot be safely interpreted as an integer. # This is added back by InteractiveShellApp.init_path()

Es molesto porque aparece en cada carrera que hago:

ingrese la descripción de la imagen aquí

¿Cómo lo soluciono o deshabilito?

almost 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Si está seguro de que su código es correcto y simple, desea deshacerse de esta advertencia y todas las demás advertencias en el cuaderno , haga lo siguiente:

 import warnings warnings.filterwarnings('ignore')
almost 4 years ago · Santiago Trujillo Report

0

Prueba esto:

 import warnings warnings.filterwarnings('ignore') warnings.simplefilter('ignore')
almost 4 years ago · Santiago Trujillo Report

0

También puede suprimir las advertencias solo para algunas líneas de código:

 import warnings def function_that_warns(): warnings.warn("deprecated", DeprecationWarning) with warnings.catch_warnings(): warnings.simplefilter("ignore") function_that_warns() # this will not show a warning
almost 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.

Andres GPT

Show me some job opportunities
There's an error!