DEV Community

Jaydeep Borkar
Jaydeep Borkar

Posted on


How to embed graph in Django for the users

I want to show a graph(using matplotlib) to the user. In which Django directory should I place my code?


my_matplotlib/ (basically, the code for the graph)

from my_matplotlib.my_matplotlib import my_func

def my_func():
foo = 'bar'
return foo

I tried this but it's not working.

Top comments (1)

danielm profile image
Daniel Mejía Raigosa

Hey, did you managed to make this work?

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.