title: gmaps is not showing the map if gmaps.figure() is not the last line of code?
body: <p>In this program I'm creating a chatbot which will respond with the coordinates of some location I'll ask and then these coordinates are passed to </p>
  
  <pre><code>gmaps.figure()
  </code></pre>
  
  <p>The program works fine if </p>
  
  <pre><code>gmaps.figure(center=coordinates, zoom_level=zoom)
  </code></pre>
  
  <p>is the last line of the code. But if I include this line under the if body then the code doesn't display any error but the map is also not visible. </p>
  
  <p>The commented part of the code is where I'm not able to see the map.</p>
  
  <p>This simple example works.</p>
  
  <pre class="lang-py prettyprint-override"><code>
  import gmaps
  gmaps.configure(api_key=my_key)
  print(type(30.2690717))
  new_york_coordinates = (30.2690717, 77.9910673)
  gmaps.figure(center=new_york_coordinates, zoom_level=17)
  </code></pre>
  
  <p>This works but when the last line of the code is deleted and the commented statement under if is uncommented map is not shown.</p>
  
  <pre class="lang-py prettyprint-override"><code>from chatterbot import ChatBot
  from chatterbot.trainers import ListTrainer
  import os
  import gmaps
  
  bot = ChatBot("Bot")
  trainer = ListTrainer(bot)
  cor = []
  for files in os.listdir("C://Users/Administrator/Desktop/Internship Project/chatterbot-corpus-master/chatterbot_corpus/data/english"):
      data = open("C://Users/Administrator/Desktop/Internship Project/chatterbot-corpus-master/chatterbot_corpus/data/english/"+files,'r').readlines()
      trainer.train(data)
  gmaps.configure(api_key=my_key)
  
  
  message = input('You:')
  if(message.strip() != 'Bye'):
      reply = bot.get_response(message)
      cor = reply.text.split(',')
      lat = (float)(cor[0].strip('-'))
      lon = (float)(cor[1])
      zoom = (float)(cor[2])
      coordinates = (lat, lon)
      #gmaps.figure(center=coordinates, zoom_level=zoom)
  gmaps.figure(center=coordinates, zoom_level=zoom)
  
  </code></pre>
  
  <p>I expect to see the map figure even if <code>gmaps.figure()</code> is not the last line of the code.</p>
  
  <p>But when <code>gmaps.figure()</code> is not the last line of the code there is no error but the map is also not displayed.</p>