# Evaluate notebook vs. cell by cell evaluation?

**URL:** <https://community.wolfram.com/t/evaluate-notebook-vs-cell-by-cell-evaluation/9142>\
**Category:** Questions\
**Tags:** mathematica, computational-notebooks, ui-ux-and-ide\
**Created:** [August 25, 2016, 6:58pm UTC](https://community.wolfram.com/t/evaluate-notebook-vs-cell-by-cell-evaluation/9142 "2016-08-25T18:58:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![djmpark](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/djmpark/32/4435_2.png) [@djmpark](https://community.wolfram.com/u/djmpark)\
**Post date:** [August 25, 2016, 6:58pm UTC](https://community.wolfram.com/t/evaluate-notebook-vs-cell-by-cell-evaluation/9142/1 "2016-08-25T18:58:58Z")

</div>

We have a bug that occurs on one machine and not others.

The bug does not occur when “Evaluate Notebook” from the Evaluation menu is used with a fresh kernel. But it does occur when, with a fresh kernel, the notebook is evaluated by hand, cell by cell, in order. The first statement loads a package.

My question is: What is the difference in the evaluation for these two methods that could cause a difference?

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [August 26, 2016, 8:19am UTC](https://community.wolfram.com/t/evaluate-notebook-vs-cell-by-cell-evaluation/9142/2 "2016-08-26T08:19:35Z")

</div>

Can you provide an example of how this is happening?

---

<div class="post-metadata">

**Author:** ![djmpark](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/djmpark/32/4435_2.png) [@djmpark](https://community.wolfram.com/u/djmpark)\
**Post date:** [August 26, 2016, 1:39pm UTC](https://community.wolfram.com/t/evaluate-notebook-vs-cell-by-cell-evaluation/9142/3 "2016-08-26T13:39:09Z")

</div>

I’ll contact Support, but it’s complicated enough that I want to do more work first to see if I can narrow it down.

---

<div class="post-metadata">

**Author:** ![lehinp](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/lehinp/32/8056_2.png) [@lehinp](https://community.wolfram.com/u/lehinp)\
**Post date:** [August 26, 2016, 5:24pm UTC](https://community.wolfram.com/t/evaluate-notebook-vs-cell-by-cell-evaluation/9142/4 "2016-08-26T17:24:42Z")

</div>

[Do you have the Suggestion Bar turned on?](http://mathematica.stackexchange.com/a/75284/280)

---

<div class="post-metadata">

**Author:** ![dreiss](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dreiss/32/29094_2.png) [@dreiss](https://community.wolfram.com/u/dreiss)\
**Post date:** [August 26, 2016, 8:11pm UTC](https://community.wolfram.com/t/evaluate-notebook-vs-cell-by-cell-evaluation/9142/5 "2016-08-26T20:11:36Z")

</div>

Just as a random thought for debugging this, check to see in the first case if the symbols defined in the package also exist in the Global` context. This may lead to nothing…

---

<div class="post-metadata">

**Author:** ![djmpark](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/djmpark/32/4435_2.png) [@djmpark](https://community.wolfram.com/u/djmpark)\
**Post date:** [August 26, 2016, 8:13pm UTC](https://community.wolfram.com/t/evaluate-notebook-vs-cell-by-cell-evaluation/9142/6 "2016-08-26T20:13:01Z")

</div>

No, and it seems to be a problem that occurs with Mathematica 10 and 11 on Windows 10 - but not on Windows 7 or Mac.

---

<div class="post-metadata">

**Author:** ![djmpark](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/djmpark/32/4435_2.png) [@djmpark](https://community.wolfram.com/u/djmpark)\
**Post date:** [August 26, 2016, 8:29pm UTC](https://community.wolfram.com/t/evaluate-notebook-vs-cell-by-cell-evaluation/9142/7 "2016-08-26T20:29:09Z")

</div>

I was concerned about that because some of the symbols were `Private` symbols in the package. But then we carefully picked symbols that were not Private or exported. The main symptom of failure is that the notebook loses connection to the package context. And this even occurs on subsequent Input cells where exported symbols get changed to symbols with the package context attached - because it no longer recognizes it.
