question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No way to cleanup used memory

See original GitHub issue

When you embed bokeh plots by manually inserting div and script you get from components there is no obvious way to clean up the memory when you no longer need plots. This results into memory leaking.

Example code can be found here: https://github.com/sashabaranov/bokeh-leak-example

Also this issue on stackoverflow: http://stackoverflow.com/questions/39895717/remove-bokeh-plot-without-leaking-memory

% bokeh info
Python version      :  2.7.12 (default, Sep 30 2016, 15:42:31)
IPython version     :  Not installed
Bokeh version       :  0.12.3
BokehJS static path :  /Users/sashab1/.virtualenvs/bokeh-leak-example/lib/python2.7/site-packages/bokeh/server/static

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
sbancalcommented, Jan 11, 2022

I prepared a Codepen to illustrate the bug I get … but it finally proves the problem is somewhere else because I don’t get these Bokeh plots remaining in that demo.

2reactions
bryevdvcommented, Sep 25, 2018

@dracorpg @sashabaranov I just want to thank you very much for digging into this and running down these details, your experience is extremely valuable and appreciated

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Free Up RAM and Reduce RAM Usage on Windows
Learn how to reduce RAM usage on your Windows computer, ... Apps > Apps & features and clicking Uninstall on any app you...
Read more >
10+ Ways to Free up RAM On Your Windows or Mac Device
Search “Activity Monitor” in the spotlight search bar (command + space). Click on the “Memory” tab. Remove unwanted applications. 3. Check CPU ...
Read more >
How to free up RAM: 15+ effective methods for Windows and ...
1. Restart your device · 2. Try other browsers · 3. Clear RAM cache · 4. Update software to latest versions · 5....
Read more >
7 Ways to Clear Memory and Boost RAM on Windows
1. RAM Hogs: Low Hanging Fruit. The fastest and easiest way to clear up memory that's being used is to make sure there...
Read more >
How to Clean Up Computer Memory Space
Click the name of a program you no longer need and click “Uninstall” to remove the program. 5. Repeat this for each program...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found