Noteook on Android fails to connect and cannot store/retrieve .ipynb files

I have been using Pydroid3 for several years to run Jupyter Notebook. Always worked fine!

Recently (a few months ago) the terminal reports the following message when calling http:// localhost:8888/tree
Unable to connect
In the terminal, attempts to save some code results in the message
File save error
NetworkError when attempting to fetch resource

Similar result when trying to upload an existing .ipynb file.

I am using a Samsung Galaxy A34 running Android 16
Pydroid3 is 8.22 (dated 28 Oct 2025)
Python is 3.13.2.
Notebook is 7.5.1

There seems to be no communication between the app and the Android file system, although everything was working correctly previously.
Can someone provide guidance on what needs to be done to get Notebook working again?
Thanks for helping.

Work-around found thanks to response by hansv61 to a similar earlier reported problem.

Battery settings for Pydroid3 should be changed from “optimised” to “unrestricted”.
Seems an unlikely solution but it really worked!!

1 Like