Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

358
Views
IPython.notebook.kernel.ejecutar en la misma celda

Tengo una pregunta de seguimiento sobre ¿Puede un cuaderno Jupyter/IPython tomar argumentos en la URL?

Aquí se supone que el objeto HTML debe ser el último en la celda y la URL de impresión está en el siguiente. ¿Es posible obtener la URL directamente sin estas suposiciones? Lo necesito en una aplicación que se ejecuta a través de un paquete, listo. Un fragmento de código (como el siguiente de la otra consulta en stackoverflow) en una sola celda sería ideal.

 *from IPython.display import HTML HTML(''' <script type="text/javascript"> IPython.notebook.kernel.execute("URL = '" + window.location + "'") </script>''') print(URL)*
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

puede insertar un div e imprimir la URL en este div:

 from IPython.display import HTML HTML(''' <div id="url_output"></div> <script type="text/javascript"> document.getElementById("url_output").innerHTML = window.location </script> ''')
about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!