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

232
Views
¿Debería este código anular la versión d3 predeterminada que usan los portátiles Juypyter?

Estoy tratando de cargar la última versión de D3JS en un cuaderno Jupyter utilizando un kernel de Python, por lo que puedo usar D3 en las celdas posteriores que contienen código javascript ejecutado a través de la magia de celda %%javascript.
Así que estoy haciendo algo como esto en una celda.

 import json from IPython.core.display import HTML,Javascript HTML( ''' <script src="https://d3js.org/d3.v7.js"></script> ''' ) str1="<nodedata>"+json.dumps(json_lab['nodes'])+"</nodedata>" str2="<linkdata>"+json.dumps(json_lab['links'])+"</linkdata>" HTML(str1+str2) Javascript('console.log(d3)')

Sin embargo, recibo esta respuesta que muestra una versión anterior allí

ingrese la descripción de la imagen aquí Qué estoy haciendo mal ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

"Este es el camino" d3.js Cargando la versión 3 frente a la versión 4 en Jupyter Notebook

 %%javascript requirejs.config({ paths: { d3: 'https://d3js.org/d3.v7' } }); require(['d3'], function(d3) { window.d3 = d3; });
about 4 years ago · Juan Pablo Isaza 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!