# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1168

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 1169

---

## [Consistent way to suppress solver output](https://discourse.julialang.org/t/consistent-way-to-suppress-solver-output/20437)

<div class="topic-metadata">

**Author:** [@ndinsmore](https://discourse.julialang.org/u/ndinsmore)\
**Replies:** 8\
**Last updated:** [December 26, 2021, 9:17pm UTC](https://discourse.julialang.org/t/consistent-way-to-suppress-solver-output/20437 "2021-12-26T21:17:56Z")

</div>

Is there a consistent way to suppress the solver output in JuMP v0.19 or MOI? It isn’t clear to me if there is.

---

## [\[Proof of concept\] Blender.jl](https://discourse.julialang.org/t/proof-of-concept-blender-jl/65591)

<div class="topic-metadata">

**Author:** [@jagot](https://discourse.julialang.org/u/jagot)\
**Replies:** 14\
**Last updated:** [December 26, 2021, 8:31pm UTC](https://discourse.julialang.org/t/proof-of-concept-blender-jl/65591 "2021-12-26T20:31:28Z")

</div>

This is nowhere near releaseability, but maybe someone could find it interesting. Blender has (as you may know) a rather extensive Python API, and I always wanted to leverage Blender’s capabilities for 3d plotting. At th…

---

## [Filtering keys out of named tuples](https://discourse.julialang.org/t/filtering-keys-out-of-named-tuples/73564)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 9\
**Last updated:** [December 26, 2021, 7:29pm UTC](https://discourse.julialang.org/t/filtering-keys-out-of-named-tuples/73564 "2021-12-26T19:29:05Z")

</div>

What’s the right way to filter a key out of a named tuple? Example: nt = (;a = 1, b = 2) filter(x-\>x\[1\] == :a,nt) # Errors filter(x-\>x\[1\] == :a,Base.Pairs(nt,keys(nt))) # Allocates an entire dictionary What’s the right…

---

## [Blurry fonts in Terminal in VSCode](https://discourse.julialang.org/t/blurry-fonts-in-terminal-in-vscode/24364)

<div class="topic-metadata">

**Author:** [@B.Vangod](https://discourse.julialang.org/u/B.Vangod)\
**Replies:** 5\
**Last updated:** [December 26, 2021, 6:55pm UTC](https://discourse.julialang.org/t/blurry-fonts-in-terminal-in-vscode/24364 "2021-12-26T18:55:53Z")

</div>

Somehow the font in the integrated terminal in VSCode is blurry or vague-looking in some spots. When I looked for a solution, it seemed that it is not as bad as depicted in a post on Reddit, but nevertheless it occurs, …

---

## [\[ANN\] DataFrameMacros v0.2](https://discourse.julialang.org/t/ann-dataframemacros-v0-2/73651)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 9\
**Last updated:** [December 26, 2021, 6:52pm UTC](https://discourse.julialang.org/t/ann-dataframemacros-v0-2/73651 "2021-12-26T18:52:30Z")

</div>

With DataFrames 1.3, it’s now possible to mutate subsets of DataFrames. The normal approach looks like this: df = DataFrame(x = 1:5, y = \[2, 4, 6, missing, 10\]) sdf = subset(df, :y =\> ByRow(ismissing), view = true) tran…

---

## [Problem variable declaration](https://discourse.julialang.org/t/problem-variable-declaration/73617)

<div class="topic-metadata">

**Author:** [@kaushik](https://discourse.julialang.org/u/kaushik)\
**Replies:** 6\
**Last updated:** [December 26, 2021, 6:43pm UTC](https://discourse.julialang.org/t/problem-variable-declaration/73617 "2021-12-26T18:43:30Z")

</div>

I have written a simple code of gradient descent. It runs well in Jupyter, but when I try to execute it on VS Code or run from Julia REPL, it shows an error that “LoadError: UndefVarError: x\_old not defined” The code i…

---

## [A weird issue with Julia-1.7.1. on Ubuntu (GibbsSeaWater.jl package)](https://discourse.julialang.org/t/a-weird-issue-with-julia-1-7-1-on-ubuntu-gibbsseawater-jl-package/73632)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 6\
**Last updated:** [December 26, 2021, 5:33pm UTC](https://discourse.julialang.org/t/a-weird-issue-with-julia-1-7-1-on-ubuntu-gibbsseawater-jl-package/73632 "2021-12-26T17:33:21Z")

</div>

The bleow script runs perfectly fine on my Macbook Pro with Julia-1.7.1, but the same program does not run at all on Ubuntu (20.04) (Julia-1.7.1) and gives me the below error message. Not sure if it is due to Julia itsel…

---

## [Issubset() but order matters](https://discourse.julialang.org/t/issubset-but-order-matters/73636)

<div class="topic-metadata">

**Author:** [@Renan\_Rabelo](https://discourse.julialang.org/u/Renan_Rabelo)\
**Replies:** 5\
**Last updated:** [December 26, 2021, 2:30pm UTC](https://discourse.julialang.org/t/issubset-but-order-matters/73636 "2021-12-26T14:30:53Z")

</div>

Is there a function that returns true or false whenever one vector is a subvector from another? issubset() does not implies order. Thanks!

---

## [Us novices also want moar speed](https://discourse.julialang.org/t/us-novices-also-want-moar-speed/73510)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 5\
**Last updated:** [December 26, 2021, 2:28pm UTC](https://discourse.julialang.org/t/us-novices-also-want-moar-speed/73510 "2021-12-26T14:28:10Z")

</div>

The following outline of an example would have helped me as I was trying to learn just enough of Julia’s parallel processing capabilities to speed up the generation of about 6000 frames in a 3D plot animation, which was …

---

## [Setup for Module/Package Testing](https://discourse.julialang.org/t/setup-for-module-package-testing/49236)

<div class="topic-metadata">

**Author:** [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)\
**Replies:** 6\
**Last updated:** [December 26, 2021, 12:46pm UTC](https://discourse.julialang.org/t/setup-for-module-package-testing/49236 "2021-12-26T12:46:14Z")

</div>

I’m developing a private package and I’m curious what the recommend process is. I started with the idea of using Pkg.develop(path=“path to my package”) but I’ve noticed that with this method I often need to restart the …

---

## [What to do when the DEQ model does not converge？](https://discourse.julialang.org/t/what-to-do-when-the-deq-model-does-not-converge/73610)

<div class="topic-metadata">

**Author:** [@chen2021](https://discourse.julialang.org/u/chen2021)\
**Replies:** 6\
**Last updated:** [December 26, 2021, 12:13pm UTC](https://discourse.julialang.org/t/what-to-do-when-the-deq-model-does-not-converge/73610 "2021-12-26T12:13:31Z")

</div>

Hi everyone! I am learning Deep equilibrium (DEQ) models. The following code is copied from @ChrisRackauckas 's reply in a topic (sorry forgot which topic). Its purpose is to train a DEQ model to fit y=2x. using Flux us…

---

## [How do I get started with Deep Learning in Julia as a Deep Learning practitioner? And other questions](https://discourse.julialang.org/t/how-do-i-get-started-with-deep-learning-in-julia-as-a-deep-learning-practitioner-and-other-questions/73642)

<div class="topic-metadata">

**Author:** [@ghoshr](https://discourse.julialang.org/u/ghoshr)\
**Replies:** 0\
**Last updated:** [December 26, 2021, 11:48am UTC](https://discourse.julialang.org/t/how-do-i-get-started-with-deep-learning-in-julia-as-a-deep-learning-practitioner-and-other-questions/73642 "2021-12-26T11:48:12Z")

</div>

Hi, I am a Deep Learning practitioner working in Computer Vision. With that role that I do on the side, I am also a CS Master’s student. I have several questions. I am familiar with PyTorch and fastai. How do I get s…

---

## [Exercise 11.4 ThinkJulia](https://discourse.julialang.org/t/exercise-11-4-thinkjulia/73620)

<div class="topic-metadata">

**Author:** [@fbal091](https://discourse.julialang.org/u/fbal091)\
**Replies:** 5\
**Last updated:** [December 26, 2021, 11:06am UTC](https://discourse.julialang.org/t/exercise-11-4-thinkjulia/73620 "2021-12-26T11:06:30Z")

</div>

here’s the text of the exercise: Memoize the Ackermann function and see if memoization makes it possible to evaluate the function with bigger arguments. I understand what memoization is, and i did with the fibonacci se…

---

## [Cant find order](https://discourse.julialang.org/t/cant-find-order/73637)

<div class="topic-metadata">

**Author:** [@JackStrauss](https://discourse.julialang.org/u/JackStrauss)\
**Replies:** 2\
**Last updated:** [December 26, 2021, 8:51am UTC](https://discourse.julialang.org/t/cant-find-order/73637 "2021-12-26T08:51:06Z")

</div>

Hello everybody Julia has order() which seems to be used for sorting dataframes. But my search skills have failed me in finding a function that gives me the order of elements in a vector. Like order(\[10.2,-3,5\]) give…

---

## [Why is Julia not inferring the output type of f(x,y)=x+y?](https://discourse.julialang.org/t/why-is-julia-not-inferring-the-output-type-of-f-x-y-x-y/73634)

<div class="topic-metadata">

**Author:** [@vedantroy](https://discourse.julialang.org/u/vedantroy)\
**Replies:** 11\
**Last updated:** [December 26, 2021, 6:27am UTC](https://discourse.julialang.org/t/why-is-julia-not-inferring-the-output-type-of-f-x-y-x-y/73634 "2021-12-26T06:27:55Z")

</div>

I’m playing around with type inference in Julia. I have the following simple function: f(x,y) = x+y function q2() x = Number\[1.0,3\] a = 4 b = 2 c = f(x\[1\],a) d = f(b,c) f(d,x\[2\]) end @code\_warntype q2() He…

---

## [General subscripts in symbols?](https://discourse.julialang.org/t/general-subscripts-in-symbols/73633)

<div class="topic-metadata">

**Author:** [@RobertN](https://discourse.julialang.org/u/RobertN)\
**Replies:** 4\
**Last updated:** [December 26, 2021, 5:57am UTC](https://discourse.julialang.org/t/general-subscripts-in-symbols/73633 "2021-12-26T05:57:00Z")

</div>

I was just playing around with subscripts in symbol names: Δx₂ = 123 It’s cool that you can do this, but I’m restricted to Unicode it seems. I’m curious, is there a way to write a general subscript? Like the way you c…

---

## [Trouble with NeuralPDE with ADAM optimizer on GPU](https://discourse.julialang.org/t/trouble-with-neuralpde-with-adam-optimizer-on-gpu/73622)

<div class="topic-metadata">

**Author:** [@vnikoofard](https://discourse.julialang.org/u/vnikoofard)\
**Replies:** 5\
**Last updated:** [December 26, 2021, 4:58am UTC](https://discourse.julialang.org/t/trouble-with-neuralpde-with-adam-optimizer-on-gpu/73622 "2021-12-26T04:58:06Z")

</div>

I’m trying to solve the dynamics of a massive particle on gravitational force by PINNs. The below code is inspired by an example in the documentation of NeuralPDE package. The problem is that the ADAM optimizer runs smoo…

---

## [Type Observable{Int64} isn't supported for uniform: dodge](https://discourse.julialang.org/t/type-observable-int64-isnt-supported-for-uniform-dodge/73635)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 0\
**Last updated:** [December 26, 2021, 3:50am UTC](https://discourse.julialang.org/t/type-observable-int64-isnt-supported-for-uniform-dodge/73635 "2021-12-26T03:50:02Z")

</div>

Why does this fail? using DataFrames, AlgebraOfGraphics, WGLMakie plotdf = DataFrame(a=\["x", "x", "y", "y"\], b=\["a", "b", "a", "b"\], c=\[1., 2., 3.,4.\]) spec = ( data(plotdf) \* mapping(:a, dodge=:b, color=:b) …

---

## [Why does using + instead of += double the number of allocations?](https://discourse.julialang.org/t/why-does-using-instead-of-double-the-number-of-allocations/73630)

<div class="topic-metadata">

**Author:** [@vedantroy](https://discourse.julialang.org/u/vedantroy)\
**Replies:** 3\
**Last updated:** [December 26, 2021, 12:50am UTC](https://discourse.julialang.org/t/why-does-using-instead-of-double-the-number-of-allocations/73630 "2021-12-26T00:50:02Z")

</div>

I have the following code that I’m playing around with (taken from here): function vectorized() a = \[1.0, 1.0\] b = \[2.0, 2.0\] x = \[0, 0\] for i in 1:1000 x = a + b end return x end @bti…

---

## [@eval all statements into module](https://discourse.julialang.org/t/eval-all-statements-into-module/73628)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 0\
**Last updated:** [December 25, 2021, 11:49pm UTC](https://discourse.julialang.org/t/eval-all-statements-into-module/73628 "2021-12-25T23:49:58Z")

</div>

Is it possible to change the repl state so that all following expressions are evaluated inside a module, without manually prefixing it with @eval M?

---

## [Enumerate multi dimensional array](https://discourse.julialang.org/t/enumerate-multi-dimensional-array/48877)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 11\
**Last updated:** [December 25, 2021, 10:37pm UTC](https://discourse.julialang.org/t/enumerate-multi-dimensional-array/48877 "2021-12-25T22:37:15Z")

</div>

Is there a way to use enumerate of a multi-dimensional array, something like: function new\_matrix(matrix) new\_matrix = copy(matrix) for (i,j,element) in enumerate(matrix) new\_matrix\[i,j\] = i\*j\*matrix\[i,j…

---

## [Can I do this syntax in Julia when specifying types and default values for functions?](https://discourse.julialang.org/t/can-i-do-this-syntax-in-julia-when-specifying-types-and-default-values-for-functions/73606)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 9\
**Last updated:** [December 25, 2021, 10:00pm UTC](https://discourse.julialang.org/t/can-i-do-this-syntax-in-julia-when-specifying-types-and-default-values-for-functions/73606 "2021-12-25T22:00:55Z")

</div>

Hi! The newest version of Matlab (Function Argument Validation - MATLAB & Simulink - MathWorks Nordic) has this capability: function c = f(a, b,c) arguments a uint32 b uint32 c uint32 = a .\*…

---

## [How to break the strings](https://discourse.julialang.org/t/how-to-break-the-strings/73602)

<div class="topic-metadata">

**Author:** [@junux](https://discourse.julialang.org/u/junux)\
**Replies:** 5\
**Last updated:** [December 25, 2021, 5:13pm UTC](https://discourse.julialang.org/t/how-to-break-the-strings/73602 "2021-12-25T17:13:03Z")

</div>

How do you split a string into chars? for example the\_string="newibe" result=('n', 'e', 'w', 'i', 'b', 'e')

---

## [Julia v1.6.5 has been released](https://discourse.julialang.org/t/julia-v1-6-5-has-been-released/73419)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 7\
**Last updated:** [December 25, 2021, 4:51pm UTC](https://discourse.julialang.org/t/julia-v1-6-5-has-been-released/73419 "2021-12-25T16:51:05Z")

</div>

Julia version 1.6.5, the fifth patch release in the 1.6 LTS series of releases, is now available. You can get binaries for glibc Linux (i686, x86-64, AArch64, ARMv7), musl Linux (x86-64), FreeBSD (x86-64), macOS (x86-64)…

---

## [Tab completion of more than one Unicode character at a time](https://discourse.julialang.org/t/tab-completion-of-more-than-one-unicode-character-at-a-time/73505)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 10\
**Last updated:** [December 25, 2021, 4:03pm UTC](https://discourse.julialang.org/t/tab-completion-of-more-than-one-unicode-character-at-a-time/73505 "2021-12-25T16:03:18Z")

</div>

Is there a way to type this variable xᵢ₊₁ without having to manually tab complete each separate character: x\\\_i TAB \\\_+ TAB \\\_1 TAB? In Latex this would be x\_{i+1}. Is there an equivalent in Julia?

---

## [Order of arguments in plotting](https://discourse.julialang.org/t/order-of-arguments-in-plotting/73596)

<div class="topic-metadata">

**Author:** [@Borel](https://discourse.julialang.org/u/Borel)\
**Replies:** 3\
**Last updated:** [December 25, 2021, 12:54pm UTC](https://discourse.julialang.org/t/order-of-arguments-in-plotting/73596 "2021-12-25T12:54:02Z")

</div>

This is an example from QuanEcon Section 31. Optimal Growth I. The following code tries to plot the linear interpolation and the true value of a function f. f(x) = 2 .\* cos.(6x) .+ sin.(14x) .+ 2.5 c\_grid = 0:.2:1 f\_gr…

---

## [Installing QML.jl](https://discourse.julialang.org/t/installing-qml-jl/533)

<div class="topic-metadata">

**Author:** [@barche](https://discourse.julialang.org/u/barche)\
**Replies:** 10\
**Last updated:** [December 25, 2021, 12:53pm UTC](https://discourse.julialang.org/t/installing-qml-jl/533 "2021-12-25T12:53:49Z")

</div>

@jtravs To my surprise, the new test binaries to prepare for the release worked on my wife’s PC (win10, 64 bit Julia 0.5), following the Readme: Pkg.clone("https://github.com/barche/QML.jl.git") Pkg.build("QML") Pkg.te…

---

## [Quoting a quoted text](https://discourse.julialang.org/t/quoting-a-quoted-text/73605)

<div class="topic-metadata">

**Author:** [@AlexanderChen](https://discourse.julialang.org/u/AlexanderChen)\
**Replies:** 4\
**Last updated:** [December 25, 2021, 9:38am UTC](https://discourse.julialang.org/t/quoting-a-quoted-text/73605 "2021-12-25T09:38:34Z")

</div>

Hi, Sorry for this simple question but I am stuck… I want to import a text from alice in wonderland. The text has single quotes. this is the orginal text: Alice was beginning to get very tired of sitting by her sister …

---

## [Embedding Julia into XCODE in a C++ document, on Big Sur](https://discourse.julialang.org/t/embedding-julia-into-xcode-in-a-c-document-on-big-sur/59458)

<div class="topic-metadata">

**Author:** [@1J0A6L6](https://discourse.julialang.org/u/1J0A6L6)\
**Replies:** 8\
**Last updated:** [December 25, 2021, 8:54am UTC](https://discourse.julialang.org/t/embedding-julia-into-xcode-in-a-c-document-on-big-sur/59458 "2021-12-25T08:54:41Z")

</div>

Hi! For those who have already embedded Julia into their XCODE project in C++ on a MacOS, preferably an Apple Macbook Pro with the Big Sur operating system… how did you do it? I’m curious, and eager to learn because… I…

---

## [Is there a way to get the stacktrace from an error object?](https://discourse.julialang.org/t/is-there-a-way-to-get-the-stacktrace-from-an-error-object/73593)

<div class="topic-metadata">

**Author:** [@RobertN](https://discourse.julialang.org/u/RobertN)\
**Replies:** 8\
**Last updated:** [December 25, 2021, 8:22am UTC](https://discourse.julialang.org/t/is-there-a-way-to-get-the-stacktrace-from-an-error-object/73593 "2021-12-25T08:22:24Z")

</div>

I have an object with type MethodError. I want to print the stacktrace (ie, backtrace) to see where it occurred. How do I do that? I see a method backtrace but it doesn’t take an argument. propertynames(err) reveals onl…

[Previous page](https://discourse.julialang.org/latest.md?page=1167)

[Next page](https://discourse.julialang.org/latest.md?page=1169)
