I took the time to update the Google-prettify highlighter for Mathematica to the current version 11.0.1. The whole project can be found in my Mathematica Source Code Highlighting repository on GitHub, but the only important file that changed is
lang-mma.min.js (un-minified source file lang-mma....
I took the time to update the Google-prettify highlighter for Mathematica to the current version 11.0.1. The whole project can be found in my Mathematica Source Code Highlighting repository on GitHub, but the only important file that changed is
lang-mma.min.js (un-minified source file lang-mma....
I fear that omnibus Q&A's (is there an accepted term for these?) like What are the most common pitfalls awaiting new users? and Where can I find examples of good Mathematica programming practice? can grow too long to be genuinely useful, and they may have done so already.
When one is met with a ...
From data test, I want to plot a graph with two x axes (see the image which I have added). Two $x$ axes, one at bottom and other on top. In test data, test[[1 ;; All, 1]] is $x$-axis at bottom, test[[1 ;; All, 2]] is $y$-axis and test[[1 ;; All, 3]] is $x$-axis at top. With my code, second $x$-ax...
This question was marked as a duplicate, and it may have been one, but the answer in the marked duplicate wasn't working for OP. I reopened it just to give an answer, but if someone cares to remark as a dupe, by all means do so.
I do feel like there hasn't been a good example of how to use Charting`FindTicks effectively, so this answer will be of help.
@yode To get the example back to zero we need to create a new RangeIterator. While it is possible that a particular iterator implementation might provide some sort of "reset" operation, it is not a common practice. Iterators, by nature, are stateful and not replayable.
@yode I would strongly discourage that practice. You are reaching into internal implementation details that may change between releases. Also, it requires a detailed analysis of the implementation to assess whether such forceful state modification has unforeseen consequences. Finally, it violates the concept of "iterator".
@yode ... and to illustrate my point, in my version of MathematicagetIteratorSymbols does not exist -- it is getIteratorState which returns both the symbols and their values:
@yode Yes. Once I was quite surprised to watch the behaviour of a particular dataset operation change after I closed and re-opened Mathematica. By chance, a paclet update had arrived between the two times that I opened the application. This was back in the early 10.x days.
@yode IteratorGraph visualizes a particular composition of iterators:
@yode Macro expansion is only triggered if the outermost head on the right-hand-side of a definition is a macro. Inner macros do not work. So, for example, this will not work:
@WReach You said :"By chance, a paclet update had arrived between the two times that I opened the application". Do you remember how you discovered that a new paclet had arrived ?
@yode I updated my response to include this information.
@andre A paclet update may occur whenever you see a pop-up message claiming to be downloading content from Wolfram servers. I didn't figure out about the paclet update until it happened a few more times and I read some comments from WRI personnel talking about the "weekly paclet bug update" (I don't remember where I read those comments.)
We can check the version of any given paclet thus:
@yode It's official: you spend more time in undocumented code than me ;D I've never used MXBatchIterator and I'd never even heard of MXNetLink until it turned up in a text search when I was looking for usages of UnpackOptions (which I had never heard of until I read your question).
Having said that, I can see from looking at the definition of MXBatchIterator that it is expecting the association to have a non-trivial internal structure. Presumably some intermediate result having to do with "deep learning" operations. It is not happy with the keys having simple atomic values.