title: Tensorboard scalars and graphs duplicated
body: <p>I'm using TensorBoard to visualize network metrics and graph.</p>
  
  <p>I create a session <code>sess = tf.InteractiveSession()</code> and build the graph in Jupyter notebook.</p>
  
  <p>In the graph, I include two summary scalars:</p>
  
  <pre><code>with tf.variable_scope('summary') as scope:    
     loss_summary = tf.summary.scalar('Loss', cross_entropy)
     train_accuracy_summary = tf.summary.scalar('Train_accuracy', accuracy)
  </code></pre>
  
  <p>I then create a <code>summary_writer = tf.summary.FileWriter(logdir, sess.graph)</code> and run: </p>
  
  <p><code>_,loss_sum,train_accuracy_sum=sess.run([...],feed_dict=feed_dict)</code></p>
  
  <p>I write the metrics:</p>
  
  <pre><code>summary_writer.add_summary(loss_sum, i)
  summary_writer.add_summary(train_accuracy_sum, i) 
  </code></pre>
  
  <p>I run the code three times. </p>
  
  <p>Each time I run, I re-import TF and create a new interactive session.</p>
  
  <p>But, in Tensorboard, a separate scalar window is created for each run:</p>
  
  <p><a href="https://i.stack.imgur.com/SpNkl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/SpNkl.png" alt="enter image description here"></a></p>
  
  <p>Also, the graph appears to be duplicated if I check data for the last run:</p>
  
  <p><a href="https://i.stack.imgur.com/wlch3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wlch3.png" alt="enter image description here"></a></p>
  
  <p>How do I prevent duplication of the graph and scalar window each time I run?</p>
  
  <ul>
  <li>I want all data to appear in the same scalar plots (with multiple series / plot).</li>
  <li>I want each run to reference a single graph visualization.</li>
  </ul>