169 votes
Accepted

How to make use of Associations?

I. General I will first try to briefly answer the questions, and then illustrate this with a small but practical application. 1.Speed of insertion / deletion Associations are based on so called Hash ...
user avatar
49 votes

How to make use of Associations?

I helped design Association, and I designed and implemented Dataset, so I wanted to comment on question 3: Dataset is designed ...
user avatar
45 votes
Accepted

How to access new colour schemes in version 10?

Update 2: The content and organization of $PlotThemes in versions 10 and 9 are very different. In Version 10 ...
user avatar
  • 349k
45 votes

V10's Operator Forms - what are they good for?

For me the operator forms of Map and Apply will probably provide the most important benefits in terms of code readability. Often ...
user avatar
  • 83.3k
40 votes
Accepted

What's the difference between Inactive and HoldForm?

Updated Both Hold and Inactive block evaluation; the key difference is that Inactive is ...
user avatar
  • 8,342
39 votes
Accepted

How to disable the small pop-up windows when mouse is over a Mathematica command in V10?

Unfortunately I cannot claim the original discovery, but there are additional CodeAssistOptions in M10, the one you want is: ...
user avatar
38 votes
Accepted

Mathematica 10 Dataset doesn't format more than 4 columns?

Theoretically, Dataset supports any number of columns. The behavior you are seeing is actually because the type deduction that Dataset is doing behind the scenes isn't perfect (and indeed in some ...
user avatar
38 votes
Accepted

V10's Operator Forms - what are they good for?

I would have liked to have more experience with the operator forms before this question was asked as I am short on examples, and I'm sure my opinion will evolve over time. Nevertheless I think I have ...
user avatar
  • 264k
35 votes

Error changing Dataset using Part

I'm the developer of Dataset. Yes, this is a gross documentation oversight. We planned this functionality but had to push it back to a point release. Somehow no-...
user avatar
24 votes

How to make use of Associations?

First of all, it's not a new data structure, it's a new only in a Wolfram Mathematica. About complexity of a data structure. It's a Wolfram implementation of a hash-map. With a complexity of an ...
user avatar
  • 3,807
24 votes

V10's Operator Forms - what are they good for?

I find the value of the new operator forms becomes critical when working with datasets. Consider ...
user avatar
  • 106k
23 votes
Accepted

How to get the new font in Mathematica 10?

Mathematica still works with Courier by default. Nothing is broken about your copy of Mathematica. It is the case, however, that if you use any sans serif font (or at least any font that properly ...
user avatar
  • 12.4k
23 votes
Accepted

How to use the Testing Notebook to test a package without shadowing?

From my understanding of what's going on, Mathematica does the following when you hit "Run": Parse the entire test notebook to look for input test cells and get the corresponding cell ids. Run the ...
user avatar
  • 86.9k
23 votes
Accepted

Generating hatched filling using Region functionality

Update 2: Finally ... in version 12.1 you can use the new directives HatchFilling and PatternFilling: ...
user avatar
  • 349k
21 votes
Accepted

Controlling quality of discretized region meshes

In principal you should be able to do r = RegionDifference[Ball[{0, 0, 0}], Ball[{0, 0, 1}]]; rp = RegionPlot3D[r, PlotPoints -> 50]; DiscretizeGraphics[rp] ...
user avatar
  • 35.6k
21 votes
Accepted

Syntax highlighter shows error for Manipulate when it's inside a Block or a Module

Based on Mr.Wizard's answer and comments by Szabolcs and celtschk, I now understand that the code I posted does have undesirable side-effects and it should be avoided. Specifically, the scoping ...
user avatar
20 votes
Accepted

How to get updates for Mathematica V10

We can push paclet updates out directly, I think PacletManager guarantees that you'll have them within a week (as long as you have an internet connection). This only works for certain functionality ...
user avatar
20 votes
Accepted

PlotLegends -> "Expressions" not working when Plot given one function

This is an intentional change to make PlotLegends -> "Expressions" more consistent with PlotLegends -> Automatic. Both now ...
user avatar
  • 33.3k
19 votes

What's the difference between Inactive and HoldForm?

One difference is that NDSolve directly supports Inactive. It can be used to specify operators such as divergence ($\nabla\cdot$...
user avatar
  • 224k
19 votes

Error changing Dataset using Part

In lieu of Set, the Query syntax offers various ways to update selective elements of a dataset. For example, we can change the ...
user avatar
  • 67k
19 votes
Accepted

Different colors when comparing Plot3D V9 and V10

An alternative to @Rahul's suggested fix: Plot3D[Sin[x+y^2],{x,-3,3},{y,-2,2}, PlotTheme->{"Classic","ClassicLights"}] The associated ...
user avatar
  • 349k
19 votes

Why is SparseArray and InterpolationFunction always grayed out?

This is not related to the output cell greying to indicate mismatch with the input cell. You can easily verify this by editing the input cell — it gets further greyed out. The new summarized display ...
user avatar
  • 86.9k
18 votes

Error changing Dataset using Part

I have implemented the underlying kernel functionality that is needed to make this possible. However it is not yet implemented on the Dataset side. I don't think this will happen in the immediate ...
user avatar
18 votes
Accepted

MatchQ-ing Associations (MMA 10)

Association is atomic: <|x -> 1|> // AtomQ True Therefore standard pattern ...
user avatar
  • 264k
18 votes

V10's Operator Forms - what are they good for?

Intermingling Operator Forms & Linguistic Connections This answer attempts to draw out linguistic connections in understanding why operator forms seem so useful, a process that can perhaps point ...
user avatar
17 votes

How to access new colour schemes in version 10?

For ease of direct access I have found through digging the following relationships for indexed colors: ...
user avatar
  • 264k
17 votes
Accepted

Where is the "Function Navigator" and "Virtual Book" gone?

Although I haven't examined it to see how complete it is, putting Virtual Book into the search bar of the Documentation Center quickly found this: http://reference....
user avatar
  • 264k
17 votes

Where is the "Function Navigator" and "Virtual Book" gone?

Update for V13 Sometime by or before V13.0, the functionality changed, and it appears the old navigator is gone. Now you can access the doc page (the same as in Mr.Wizard's answer) with this new ...
user avatar
  • 213k
17 votes
Accepted

Join two datasets on keys

Currently in Mathematica v10 you need to be careful joining datasets as the Key[] function doesn't work with a string key for a dataset (it does for an association) . See Taliesin's comment below. ...
user avatar
  • 2,261
17 votes

Trial version 10 vs Version 10 Prerelease 13

Here are three progressively more intrusive steps to troubleshoot Mathematica. Hold down Shift-Control (Shift-Command on Mac) while starting Mathematica, as described here. If this didn't fix the ...
user avatar
  • 224k

Only top scored, non community-wiki answers of a minimum length are eligible