# Run pre-Mathematica 11 Notebooks with packages in Mathematica 11?

**URL:** <https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108>\
**Category:** Questions\
**Tags:** mathematica, geometry, graphics-and-visualization, packages-and-paclets\
**Created:** [August 19, 2016, 7:04pm UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108 "2016-08-19T19:04:39Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [August 19, 2016, 7:04pm UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/1 "2016-08-19T19:04:39Z")

</div>

How do I run pre-Mathematica 11 Notebooks in Mathematica 11?

Hi I just upgraded. I have Mathematica notebooks made I like to use in a previous version.

The first I tried uses Sphere[]. But it’s broken and there’s no “import”. Instead of renaming some NEW function that doesn’t do the same thing, Mathematica clobbers Sphere with a new definition.

I found there is a trail of “legacy .m” files one can download one at a time (GUGH!) such as “WorldNames.m”. However Sphere is “built-in” and I’m unsure if any “legacy.m” will prevent me from re-writing all my packages.

I refuse to see why 11 has to clobber my notebooks. And I’m wondering right now if new employees Wolfram at expect that my notebooks are SACRIFICIAL, and that only their new release easiness matters ? Put another way, if i can’t make mm10 run in 11, will mm11 notebooks run in 12? why am i urged to upgrade instead of keeping one of every version if they have taken a policy of creating version incompatibility?

What is the point of making notebooks if their functionality cannot be shared with others and are clobbered in any given mathematica release? Their’s always work and are sold mine are always broken and i’m up the creek? Who’s paying again?

I’m a huge Mathematica fan despite this issue but it’s an issue I will Raise

---

<div class="post-metadata">

**Author:** ![sghuisman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sghuisman/32/27850_2.png) [@sghuisman](https://community.wolfram.com/u/sghuisman)\
**Post date:** [August 19, 2016, 7:46pm UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/2 "2016-08-19T19:46:58Z")

</div>

You should be able to run all your stuff since version 1 of Mathematica in the new Mathematica 11.

If you share some code that ‘does not work’ in V11 but did in V10 we could assess the situation a bit better.

---

<div class="post-metadata">

**Author:** ![iliang](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/iliang/32/11263_2.png) [@iliang](https://community.wolfram.com/u/iliang)\
**Post date:** [August 19, 2016, 9:18pm UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/3 "2016-08-19T21:18:59Z")

</div>

Could you give an example showing in what way **Sphere** is broken?

It was introduced as a system symbol in version 6.0.0, almost 10 years ago. Are you saying you have an older notebook where you defined your own function with the same name? Obviously it will need some adjustment to address the naming conflict.

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [August 20, 2016, 1:23am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/4 "2016-08-20T01:23:11Z")

</div>

Incorrect Sphere was introduced before version 4.0

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [August 20, 2016, 1:28am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/5 "2016-08-20T01:28:53Z")

</div>

In[13]:= Needs[“NumberTheory`NumberTheoryFunctions`”]

During evaluation of In[13]:= Get::noopen: Cannot open NumberTheory`NumberTheoryFunctions`.

During evaluation of In[13]:= Needs::nocont: Context NumberTheory`NumberTheoryFunctions` was not created when Needs was evaluated.

Out[13]= $Failed

* * *

This should succeed because it’s already loaded. The definition of Needs was and is that loads if not already loaded and returns false when a Needed package is not available. As the following shows (show in version 11, this needed variable is in same context is already loaded):

?\*`CRTlist

NumberTheory`NumberTheoryFunctions`Private`CRTlist

Timing@Short@crtlist[Range[500], Prime[Range[500]], 1, 500]

(try %[[2,1]] to see if it evaluated or returned unevaluated, return is \<\<1\>\>)

(\* the above shows what documentation says: it’s been made internal \*)

let’s set Needs aside. my .nb assigned “crtlist=…`CRTlist”, and calls the function with parameters.

though MM 11 has the same CRTlist in the same place, it returns unevaluated

it’s not critical to the notebook except in EDUCATION of why “crtwo” gives really all repeated cr sol’n and ChineseRemainder (ver 4.0 mm?) could not

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [August 20, 2016, 1:33am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/6 "2016-08-20T01:33:06Z")

</div>

Needs[“Miscellaneous`Units”]  
$Fails

but Needs[“Units`”] works

This is a nuisance change - helping some hacker but hurting everyone who used Units in a notebook - which i HOPE is everyone.

It was difficult to find what worked because Mathematica 11 documentation does not say when the change occured nor tell me what package to load. Also (for iMac), the .m files are all gone so i cannot research the answer for myself - i’m left with using Kernel Evaluation to guess/find where SI units are to be found. however for other changes documentation DOES show where to go and what the deciding $VersionNumber is to use.

again i don’t like having other decide my job is to sit around re-writing what already works - to make their life simpler

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [August 20, 2016, 1:50am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/7 "2016-08-20T01:50:33Z")

</div>

semiMajorAxis = 6378137.0 Meter;  
a=%;  
foo = WireFrame[Graphics3D[  
Sphere[(a/Meter) .95 // N, 20, 15]]]

$Failed

* * *

# rsh foo

Last login: Fri Aug 19 21:26:22 from foo2  
This host is privately owned and requires permission of use.

All of Debian GNU/Linux system is free but comes with no  
warranty to the maximum extent permitted by applicable law.  
You have mail.  
1 foo2 foo3@foo:/home/foo5

# math

Mathematica 4.0 for Linux  
Copyright 1988-1999 Wolfram Research, Inc.

In[1]:= ?Sphere  
Sphere[(r:1, (n:20r, m:15r))] is a list of n\*(m-2)+2 polygons approximating a  
sphere with radius r.

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [August 20, 2016, 1:55am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/8 "2016-08-20T01:55:52Z")

</div>

(this image was a byproduct - the mis-use of tesselation and boundary simply appeared funny)

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [August 20, 2016, 2:01am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/9 "2016-08-20T02:01:56Z")

</div>

ALSO. WireFrame no longer works (not in the same manner anyhow, or not with Sphere). here is the WireFrame

Sphere[{0,0,0},1] // Graphics3D // WireFrame // Show

$Failed on WireFrame

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [August 20, 2016, 2:02am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/10 "2016-08-20T02:02:41Z")

</div>

How do I run pre-Mathematica 11 Notebooks in Mathematica 11? Or 11 in 12?

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [August 20, 2016, 2:04am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/11 "2016-08-20T02:04:41Z")

</div>

sorry working on new system here…

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [August 20, 2016, 2:09am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/12 "2016-08-20T02:09:40Z")

</div>

really: how do i use pre-v11 notebooks with 11. that’s the question.

what is broken between them isn’t really the question (though newly sometimes undocumented)

_Is there a package i can load that makes running older notebooks easier?_

**am i missing something? that’s my question. what i don’t know 🙂**

---

<div class="post-metadata">

**Author:** ![iliang](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/iliang/32/11263_2.png) [@iliang](https://community.wolfram.com/u/iliang)\
**Post date:** [August 20, 2016, 2:35am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/13 "2016-08-20T02:35:18Z")

</div>

(I think) I understand, in version 4 you probably had the old **Graphics`Shapes`** package loaded [(reference)](https://reference.wolfram.com/legacy/v5_2/Add-onsLinks/StandardPackages/Graphics/Shapes.html) which defined the symbol **Graphics`Shapes`Sphere**. This was made obsolete by the introduction of **System`Sphere** in version 6, so one could simply do things like

```
Graphics3D[Sphere[]]

```

without loading any packages and without using **Show**. The new **Sphere** is an actual graphics primitive and not a crude approximation. If you really need what the old implementation did, just look at the legacy package [source code](http://library.wolfram.com/infocenter/MathSource/6793/). The code works fine in version 11, I just renamed **Sphere** to **sphere** :

 ![8-19-20169-28-57PM.png](https://global.discourse-cdn.com/wolfram/original/3X/6/9/698bba8041bc32bb6b0dff35205fe0788fde539d.png)

Practically all of the legacy standard add-on packages have been superseded by new, better and easier to use built-in functionality. The old source code has also been made available on MathSource almost 10 years ago.

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [August 20, 2016, 2:42am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/14 "2016-08-20T02:42:14Z")

</div>

yes why don’t i make you all obsolete with a few keystrokes destroying namespace and moving .m to a different location ?

who is deciding to hack in obsolete asserting everything is legacy isn’t the question.

really: what makes the notebooks work is the question

for example: where is the library of .m of these functions on the internet or in MM11 ? is there a way they can be loaded as a set ?

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [August 20, 2016, 2:47am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/15 "2016-08-20T02:47:41Z")

</div>

NumberTheory`NumberTheoryFunctions`Private`CRTlist

(a repost, somehow forum deleted original post)

$Failed

docs say it’s internal but not when done. i no longer have a .m to read definitions of what’s in it

?\*`CRTlist  
does show it still exists

but when called it does not evaluate as it had. i have no .m to know why

a notebook of mine uses this to show “crtwo” (among other improvements) solves chinese remainder showing ALL repeated solutions but the old ChineseRemainder (“by stan wagon et al”) could not do it

while crtwo itself is un-effected, the notebook describing “crtwo” is now needs repair.

it is not a simple notebook. such repairs are not 1-2-3. i really wish they hadn’t done that. i’ll be finding tons of needless (wonton) hackery makng my notebooks fail for days - and have time to fix a precious few - which has been delayed by talking about it.

---

<div class="post-metadata">

**Author:** ![sghuisman](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sghuisman/32/27850_2.png) [@sghuisman](https://community.wolfram.com/u/sghuisman)\
**Post date:** [August 20, 2016, 11:11am UTC](https://community.wolfram.com/t/run-pre-mathematica-11-notebooks-with-packages-in-mathematica-11/9108/16 "2016-08-20T11:11:22Z")

</div>

As said by Ilian, Sphere is now a built-in that produces a smooth sphere without specifying rendering-related parameters. Also ChineseRemainder is now a built-in function (since V6 I think). No need to load any package. I think many of the functions you used before in V4 are now part of built-in function which are more convenient and most likely faster. Of course you can (down)load these packages again but be wary of naming-conflicts.

If you don’t want to leverage the functions of versions 5,6,7,8,9,10,11 and still use the old functions in packages, then you could just as well use V4…

It will take some effort to convert some of the package-functions to built-in functions…
