Under Windows 10 I have a Jupyter notebook that I am not able anymore to open because the browser reaches the "out of memory" state. The system resources tool confirms this: reaching 85% of used RAM the process is stopped. The last time I used the notebook there were a lot of rendered charts and some heavy dataframe populated. The feeling is that they are still there and once the notebook is opened again Jupyter tries to load also the full data and all the images. I need at least an easy way to not lose all the code in between. Is there a way to open the notebook in a "safe mode" so that images and dataframe are not loaded?
Open Jupyter notebook without render images and without popolating dataframes - safe mode loading preventing out of memory state
436 Views Asked by fede72bari At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in OUT-OF-MEMORY
- How to avoid out of memory exception in case of reading large .xlsx file in java using apache poi library class XSSFWorkbook
- How do I release images and avoid outOfMemory exc-n when navigating back and forth between activities[android]
- OutOfMemoryError: Java heap space MultipartRequest
- View Flipper : how to use large number of images?
- Running out of memory resizing images in dot net
- Garbage collection not triggered in app when largeHeap is enabled resulting in OOM
- Faye Ruby Server Side Publish on Heroku - EventMachine buffer overflow detected
- Efficient Multi dimenstion Mutable Scala Array
- Android Studio: Out of Memory Error, Parse API
- Is there a way to control the memory usage of C# DataTable
- How to fix my system out of memory exception?
- VBA Run-time Error 7 Out of Memory
- What is: Bad_dump!missing_teb (Windows Phone Dev Center Crash Log)
- Running out of memory errors with pillow and python 2.7.10
- Picasso clear memory
Related Questions in JUPYTER
- Executing Javascript cells in Jupyter Notebooks
- Displaying ggplot2 graphs from R in Jupyter
- Jupyter notebook with bibtex citations
- seaborn barplot() output figure is overwritten
- How can I see function arguments in IPython Notebook Server 3?
- Jupyter (ipython notebook), hide menu and some toolbar buttons, or run python code on loading
- Julia parallel computing in IPython Jupyter
- Spark 1.4 increase maxResultSize memory
- Unable to run ipython-notebook 2.7 with jupyterhub
- Simplest Way to Serve Jupyter Incubator Dashboards Locally
- How do I get IntelliJ/PyCharm to recognize an active IPython kernel?
- AttributeError in fit_transform(self, raw_documents, y)
- Jupyter Notebook - .ipynb files - opening as plain text - No longer interactive notebook
- Using pipes to capture things printed to STDERR into Python variable from Jupyter
- ImportError: No module named hmm
Related Questions in SAFE-MODE
- Hadoop 2.6.0 Namenode stuck in safemode and won't leave it
- Run launcher app in safe mode of android
- When or for what Reasons should folks turn PHP Safemode ON/OFF?
- Hadoop safemode recovery - taking too long!
- PHP safe_mode problem using curl
- How can I disable the Alt/Option key from opening Firefox in safe mode?
- Simple if in .bat or .cmd to check if booted in safe mode or not
- How to deactivate safe mode in the mongo shell?
- Unable to start IIS Express when runnin VS in SafeMode
- Does android keep a log of when it starts?
- PHP safemode alternative
- Safe mode.. mkdir
- Running Visual Studio in Windows Safe Mode
- safemode required for future system updates
- PHP session with safe_mode on
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can copy your notebook to a new file and then clean the output from that. The clean version should then allow you to open it and access your code easily if indeed the output stored was the problem. (The copying is important because you don't want to clobber your original
.ipynbfile containing the intact output as it probably was an effort to come by.)To see nbclean in action stripping output from a test notebook:
Go here and click
launch binderunder 'Example'.In the session that comes up run the following in a notebook cell:
Then using Jupyter compare the file
test_notebook.ipynbtotest_notebook_cleaned.ipynb.Then adapt the code to the copy of your notebook. (If you want to do it on your machine, you'll need to run
%pip install nbcleanin a cell in your notebook first. You may have to do it on your machine or a more substantial remote system than MyBinder provides if your file is too large to upload to sessions running via MyBinder.) The clean version hopefully opens just fine for you.nbclean is based on nbformat (find intro at top of here), which would also allow you to do this, I have some examples of various applications of nbformat with code among answers here and here.
Recipe for using
jupyter nbconvertto clear outputsThere's also clean_ipynb and nb-clean.
UPDATE: The OP found nb-clean nice because could install using conda or pip and use single line to act on the notebook:
(Because that command runs in place, make sure you use a copy if you care about what was among the output.)
Alternatively, you can convert the notebook to a script using Jupytext on the command line. That would allow you to access the code in it as well.