Run in jupyter notebook

If I can run my code in jupyter notebook && docker && remote server ?
However, It will rise error(I have set docker_training=True) :

UnityTimeOutException: The Unity environment took too long to respond. Make sure that :
	 The environment does not need user interaction to launch
	 The Academy's Broadcast Hub is configured correctly
	 The Agents are linked to the appropriate Brains
	 The environment and the Python interface have compatible versions.

At first, I have found the same error in this topic.
Unfortunately, I can’t set RUN sed -i 's/docker_training=docker_training/docker_training=True/g' in my Dockerfile, since I use jupyter notebook.

Second, I kown render gym env in jupyter with this command(this port):

xvfb-run -s "-screen 0 1400x900x24" jupyter notebook

I just wonder whether it will work in unity env as well.

My code is very simple, and I just want to test the env.

gym_env = AnimalAIEnv(


This command works fine.

xvfb-run -s "-screen 0 1400x900x24" jupyter notebook

Hi, I am not sure I understand your question, are you having issue running jupyter notebooks with xvfb? Do you get an error message?

Everything work fine. I just don’t have enough time to restart jupyter with this command xvfb-run -s "-screen 0 1400x900x24" jupyter notebook at that day.