Title
#tech-support
n

nuhyurduseven

10/14/2022, 8:34 AM
I got an error about saving a notebook. It's just 1.1MB. I can upload this notebook but cannot save any change. I got last update recently, a few minute ago. How can I solve this ?
juanlu

juanlu

10/14/2022, 8:44 AM
hi @nuhyurduseven! I think this is an instance of https://github.com/orchest/orchest/issues/1236
8:44 AM
Could you try to "clear all outputs" in JupyterLab and save again?
n

nuhyurduseven

10/14/2022, 8:48 AM
Ok. I can try these steps.Nb has many matplotlib plots and It's possible that is the source of the problem.
Jacopo

Jacopo

10/14/2022, 8:49 AM
Hi @nuhyurduseven, thanks for reporting the issue, if what @juanlu suggested doesn't work, could you try the following?
kubectl get -n orchest ingress --no-headers -o custom-columns=":metadata.name" | grep jupyter-server
-> you will get one or more ingresses depending on how many interactive sessions you are currently running, either stop the ones you aren't using or the next step needs to be applied to every ingress • apply this annotation to the ingress
kubectl patch -n orchest ingress <INGRESS NAME> -p '{"metadata":{"annotations":{"<http://nginx.ingress.kubernetes.io/proxy-body-size|nginx.ingress.kubernetes.io/proxy-body-size>":"0"}} }'
Example:
kubectl patch -n orchest ingress jupyter-server-da8e8078-791a-4e730915b350-b929-4cbd -p '{"metadata":{"annotations":{"<http://nginx.ingress.kubernetes.io/proxy-body-size|nginx.ingress.kubernetes.io/proxy-body-size>":"0"}} }'
n

nuhyurduseven

10/14/2022, 8:51 AM
Thanks, I can try if @juanlu's solution doesn't work.
11:58 AM
@juanlu's solution is not worked fully,When I clear all outputs, the error not shown. but
%matplotlib ipympl
doesn't work, throw the "no module named ipympl". I installed with mamba for same environment.
juanlu

juanlu

10/14/2022, 11:59 AM
so, if I understand correctly, • clearing the outputs makes the "entity too large" error go away, and you can save the notebook ✔️ • but
%matplotlib ipympl
does not work, even though
ipympl
is installed in the environment?
n

nuhyurduseven

10/14/2022, 12:01 PM
yes, I have installed ipympl and ipywidgets via mamba on jupyterlab terminal. my python env is shown at left of the promt.
12:02 PM
if I import the module , I get "no named module " error .
Jacopo

Jacopo

10/14/2022, 12:11 PM
@nuhyurduseven my advice would be to try out the kubectl commands I suggested, at the end of the day we wouldn't want to limit the size of the notebook outputs being saved
n

nuhyurduseven

10/14/2022, 12:13 PM
@Jacobo de Haro I will try. I belive your configs work because it's related with nb otputs size.
Jacopo

Jacopo

10/14/2022, 12:17 PM
That would be good to hear, we have just published a new release that should fix this exact issue
n

nuhyurduseven

10/14/2022, 12:19 PM
Actually, I cannot understand. why am I getting a "no named module" error? They are installed, kernel can see other modules but cannot see these.
Jacopo

Jacopo

10/14/2022, 12:20 PM
About the particular issue with the matplotlib modules I have no idea tbh, I'll leave this to the expert @juanlu
n

nuhyurduseven

10/14/2022, 12:21 PM
I just installed seaborn for testing accessibility. I can access the module , it's imported. no problem for others
juanlu

juanlu

10/14/2022, 12:22 PM
I think you can't just
!mamba install ipympl
in the notebook because there are some extra mechanisms involved in setting up the widgets and so on. I'll provide some more instructions in a moment
n

nuhyurduseven

10/14/2022, 12:23 PM
No, I didn't use notebook to install modules. I used jupyterlab terminal.
12:26 PM
I think @Jacopo ' s solution works. I saved changes after done ingress configs via kubectl.
12:27 PM
It can be good for production release.
Jacopo

Jacopo

10/14/2022, 12:28 PM
it's already released, feel free to update 🙂
12:28 PM
btw, I'm not Jacopo de Haro, I'm @Jacopo 😛
n

nuhyurduseven

10/14/2022, 12:30 PM
Sorry, fixed now:face_with_peeking_eye:
Rick Lamers

Rick Lamers

10/14/2022, 1:31 PM
ipympl
works if you install it in the environment setup script and JupyterLab config.
1:32 PM
n

nuhyurduseven

10/14/2022, 1:36 PM
I already used setup.sh. Actually I can see the plots, it's not a problem but I cannot save the notebook which has many plots
Rick Lamers

Rick Lamers

10/14/2022, 1:37 PM
Ah, did you update to v2022.10.7?
1:37 PM
That should fix the "save large notebooks" issue
n

nuhyurduseven

10/14/2022, 1:37 PM
@Jacopo’s ingress config is works for me. I can save nb now
Rick Lamers

Rick Lamers

10/14/2022, 1:37 PM
Ah great
Jacopo

Jacopo

10/14/2022, 1:40 PM
@Jacopo’s ingress config is works for me. I can save nb now
Note that the fix will only work for that interactive session, if you want this change to be permanent you should update to v2022.10.7
n

nuhyurduseven

10/14/2022, 1:41 PM
update released 2 hours ago@Rick Lamers. You're so quick. I have updated 8 hours ago. 😄
Rick Lamers

Rick Lamers

10/14/2022, 1:44 PM
Hehe. All @Jacopo here 👏
n

nuhyurduseven

10/14/2022, 2:05 PM
Btw, I used to get an error while importing ipympl. Just updated v2022.10.7 and now there is no error.
Rick Lamers

Rick Lamers

10/14/2022, 2:10 PM
Interesting, this could have been related to max network payload.