# Latest

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

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

**Page:** 1167

---

## [Read binary Float128 data](https://discourse.julialang.org/t/read-binary-float128-data/73767)

<div class="topic-metadata">

**Author:** [@Mikel\_Antonana](https://discourse.julialang.org/u/Mikel_Antonana)\
**Replies:** 0\
**Last updated:** [December 29, 2021, 5:06pm UTC](https://discourse.julialang.org/t/read-binary-float128-data/73767 "2021-12-29T17:06:52Z")

</div>

We use our own C function to read Float128 binary data (Readbin code is below) which works correctly with Julia 1.4.2 and earlier versions. With later versions we get the following error: "julia: symbol lookup error…

---

## [Warning: Assignment Variable](https://discourse.julialang.org/t/warning-assignment-variable/73784)

<div class="topic-metadata">

**Author:** [@stanfordblaze](https://discourse.julialang.org/u/stanfordblaze)\
**Replies:** 1\
**Last updated:** [December 29, 2021, 8:04pm UTC](https://discourse.julialang.org/t/warning-assignment-variable/73784 "2021-12-29T20:04:51Z")

</div>

Can someone explain me what the warning means? If anyone has tips for preventing this error then it would be awesome. Code: user\_input = "Sam is mad!" while user\_input != "END" print("Enter some input, or END to …

---

## [LoadError: MethodError while training LSTM model in Julia](https://discourse.julialang.org/t/loaderror-methoderror-while-training-lstm-model-in-julia/73774)

<div class="topic-metadata">

**Author:** [@sherlock\_holmes](https://discourse.julialang.org/u/sherlock_holmes)\
**Replies:** 0\
**Last updated:** [December 29, 2021, 6:11pm UTC](https://discourse.julialang.org/t/loaderror-methoderror-while-training-lstm-model-in-julia/73774 "2021-12-29T18:11:07Z")

</div>

I’m trying to train an LSTM model to predict number of real roots of polynomials. x\_train and y\_train include array of arrays such as \[\[-204, 20, 13, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0…

---

## [Error: LoadError: UndefVarError: user\_input not defined](https://discourse.julialang.org/t/error-loaderror-undefvarerror-user-input-not-defined/73783)

<div class="topic-metadata">

**Author:** [@stanfordblaze](https://discourse.julialang.org/u/stanfordblaze)\
**Replies:** 4\
**Last updated:** [December 29, 2021, 7:58pm UTC](https://discourse.julialang.org/t/error-loaderror-undefvarerror-user-input-not-defined/73783 "2021-12-29T19:58:24Z")

</div>

I’m new in Julia, honestly starting few moments ago seeing a tweet! I’m facing an unexpected error. It looks everything fine my code but still it results an error. Can anyone help me out? Code: while user\_input != "END…

---

## [Running Julia from JAVA? What is crazier?](https://discourse.julialang.org/t/running-julia-from-java-what-is-crazier/31662)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 39\
**Last updated:** [December 29, 2021, 7:35pm UTC](https://discourse.julialang.org/t/running-julia-from-java-what-is-crazier/31662 "2021-12-29T19:35:05Z")

</div>

Hey everyone, I’m exploring UI tools and integrating them with Julia. As part of this exercise I ended up making a nice UI in JAVAFX, now I need to hook it into Julia… So there’s two ways to go about this from what I un…

---

## [Does Cartesian Indexing work on single values?](https://discourse.julialang.org/t/does-cartesian-indexing-work-on-single-values/73744)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 13\
**Last updated:** [December 29, 2021, 7:15pm UTC](https://discourse.julialang.org/t/does-cartesian-indexing-work-on-single-values/73744 "2021-12-29T19:15:58Z")

</div>

My goal is to create a function to check if my data points are valid, i.e., not an NaN and not equal to -999. Here is the function I wrote: f(A) = \[idx for idx in CartesianIndices(A) if @inbounds (!isnan(A\[idx\]) && A\[i…

---

## [Differentiable vectorized piecewise function in Julia?](https://discourse.julialang.org/t/differentiable-vectorized-piecewise-function-in-julia/73766)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 6\
**Last updated:** [December 29, 2021, 5:47pm UTC](https://discourse.julialang.org/t/differentiable-vectorized-piecewise-function-in-julia/73766 "2021-12-29T17:47:57Z")

</div>

How could I define this function in Julia? f(x) = \\begin{cases} x^2 &\\text {x \< 2} \\\\ (x-2)(x-4) &\\text {otherwise}\\end{cases}

---

## [Polynomial plot clipped?](https://discourse.julialang.org/t/polynomial-plot-clipped/73747)

<div class="topic-metadata">

**Author:** [@paulmelis](https://discourse.julialang.org/u/paulmelis)\
**Replies:** 5\
**Last updated:** [December 29, 2021, 5:30pm UTC](https://discourse.julialang.org/t/polynomial-plot-clipped/73747 "2021-12-29T17:30:19Z")

</div>

Curious, why does the plot of f get clipped around x=5.5? julia\> using Plots, Polynomials julia\> xdata = \[1.0, 3.5, 5.5, 7.0\] julia\> ydata = \[1.6884409261691142, 1.1095511387771335, 0.9753592108946215, 0.952227221687402…

---

## [Do I need to configure anything in VSCode to switch to using v1.6.0?](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122)

<div class="topic-metadata">

**Author:** [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Replies:** 18\
**Last updated:** [March 28, 2021, 11:08pm UTC](https://discourse.julialang.org/t/do-i-need-to-configure-anything-in-vscode-to-switch-to-using-v1-6-0/58122 "2021-03-28T23:08:04Z")

</div>

I’m new to the VSCode editor and have some very basic newbie questions: I just upgraded from Julia 1.5.3 to 1.6.0. Do I need to configure something in VSCode to made the editor “switch” to the newer installation? In th…

---

## [Continuous analog of SavingCallback from DifferentialEquations.jl](https://discourse.julialang.org/t/continuous-analog-of-savingcallback-from-differentialequations-jl/73613)

<div class="topic-metadata">

**Author:** [@EvgenijGr](https://discourse.julialang.org/u/EvgenijGr)\
**Replies:** 7\
**Last updated:** [December 29, 2021, 4:52pm UTC](https://discourse.julialang.org/t/continuous-analog-of-savingcallback-from-differentialequations-jl/73613 "2021-12-29T16:52:33Z")

</div>

So, the problem that I wanted to solve is the following. For a system that I study I wanted to record time and phase state when F(x, t) = 0, where F(x, t) is some non-linear function. If F(x, t) is linear, then there is …

---

## [Execution time test](https://discourse.julialang.org/t/execution-time-test/73753)

<div class="topic-metadata">

**Author:** [@XLVII](https://discourse.julialang.org/u/XLVII)\
**Replies:** 1\
**Last updated:** [December 29, 2021, 3:47pm UTC](https://discourse.julialang.org/t/execution-time-test/73753 "2021-12-29T15:47:33Z")

</div>

I have two function: Let’s say Funtion() Faster\_Function() their outputs are the same but their order is different, I want to test their speed and accuracy, how can I do this? I also need features such as writing out…

---

## [CUDA unexplainable SPEEDUP! Local memory?](https://discourse.julialang.org/t/cuda-unexplainable-speedup-local-memory/73754)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 4\
**Last updated:** [December 29, 2021, 3:35pm UTC](https://discourse.julialang.org/t/cuda-unexplainable-speedup-local-memory/73754 "2021-12-29T15:35:36Z")

</div>

Hey, I was trying to implement a kernel function when I faced with this incredible big difference: using BenchmarkTools using CUDA fast(v, nins,k,j,glay,glay2) = begin I = (blockIdx().x - 1) \* blockDim().x + threadIdx…

---

## [Not sure how to implement a python class in PyCall](https://discourse.julialang.org/t/not-sure-how-to-implement-a-python-class-in-pycall/73751)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 2\
**Last updated:** [December 29, 2021, 2:11pm UTC](https://discourse.julialang.org/t/not-sure-how-to-implement-a-python-class-in-pycall/73751 "2021-12-29T14:11:20Z")

</div>

I am trying to use PyCall to reuse a python script which has this code component. I have avoided using python’s oo class system and so I’m not too sure what is going on. from ib\_insync import \* ib = IB() ib.connect('n…

---

## [Error installing some packages](https://discourse.julialang.org/t/error-installing-some-packages/73757)

<div class="topic-metadata">

**Author:** [@munizalex](https://discourse.julialang.org/u/munizalex)\
**Replies:** 3\
**Last updated:** [December 29, 2021, 2:29pm UTC](https://discourse.julialang.org/t/error-installing-some-packages/73757 "2021-12-29T14:29:52Z")

</div>

Hi, I’m a ZorinOS user and installed julia 1.6.5 now. I was going to install some packages, like Latexify and LaTeXString and I had these errors: julia\> Pkg.add(“Latexify”) ERROR: UndefVarError: Pkg not defined Stackt…

---

## [Documenter makedocs() failing to build locally](https://discourse.julialang.org/t/documenter-makedocs-failing-to-build-locally/73752)

<div class="topic-metadata">

**Author:** [@MattWillFlood](https://discourse.julialang.org/u/MattWillFlood)\
**Replies:** 0\
**Last updated:** [December 29, 2021, 1:20pm UTC](https://discourse.julialang.org/t/documenter-makedocs-failing-to-build-locally/73752 "2021-12-29T13:20:38Z")

</div>

Hi Guys :slightly\_smiling\_face: I’m trying to update the docs for a new package release, but makedocs() won’t build the HTML files locally. There is only a minor edit to the text in the new documentation and no change t…

---

## [Operator overloading of &&](https://discourse.julialang.org/t/operator-overloading-of/73735)

<div class="topic-metadata">

**Author:** [@atteson](https://discourse.julialang.org/u/atteson)\
**Replies:** 6\
**Last updated:** [December 29, 2021, 10:32am UTC](https://discourse.julialang.org/t/operator-overloading-of/73735 "2021-12-29T10:32:18Z")

</div>

As far as I can tell, there is no ability to overload &&. It doesn’t seem to be a function defined in Base as other operators are. I assume this is because it doesn’t behave the way other functions do in that it short …

---

## [Flux "60 minute blitz" weird error when using GPU](https://discourse.julialang.org/t/flux-60-minute-blitz-weird-error-when-using-gpu/73537)

<div class="topic-metadata">

**Author:** [@GlenHenshaw](https://discourse.julialang.org/u/GlenHenshaw)\
**Replies:** 10\
**Last updated:** [December 29, 2021, 8:58am UTC](https://discourse.julialang.org/t/flux-60-minute-blitz-weird-error-when-using-gpu/73537 "2021-12-29T08:58:26Z")

</div>

I’m running the following Flux code, which comes directly from the Flux “60 Minute Blitz” tutorial. I get a weird error when using the |\> gpu construct, but not when the code runs on the CPU. I’ve posted this as a bug to…

---

## [Exercise 10.10 from Think Julia book](https://discourse.julialang.org/t/exercise-10-10-from-think-julia-book/73592)

<div class="topic-metadata">

**Author:** [@fbal091](https://discourse.julialang.org/u/fbal091)\
**Replies:** 6\
**Last updated:** [December 28, 2021, 11:25pm UTC](https://discourse.julialang.org/t/exercise-10-10-from-think-julia-book/73592 "2021-12-28T23:25:08Z")

</div>

hi there, i can’t understand how to implement a bisection search. I’m trying to do exercise 10.10 from the Think Julia book, here’s the text: To check whether a word is in the word array, you could use the ∈ operator, …

---

## [Hijri calendar](https://discourse.julialang.org/t/hijri-calendar/73700)

<div class="topic-metadata">

**Author:** [@jafar.isbarov](https://discourse.julialang.org/u/jafar.isbarov)\
**Replies:** 4\
**Last updated:** [December 28, 2021, 7:14pm UTC](https://discourse.julialang.org/t/hijri-calendar/73700 "2021-12-28T19:14:18Z")

</div>

I could not find any implementations of Hijri calendar. I think it would be good to have support for it, since it is one of the most commonly used calendars in the world. But I am new to Julia, so I do not how to go abou…

---

## [PGFPlotsX in Visual Studio](https://discourse.julialang.org/t/pgfplotsx-in-visual-studio/73734)

<div class="topic-metadata">

**Author:** [@clizama](https://discourse.julialang.org/u/clizama)\
**Replies:** 0\
**Last updated:** [December 28, 2021, 11:02pm UTC](https://discourse.julialang.org/t/pgfplotsx-in-visual-studio/73734 "2021-12-28T23:02:12Z")

</div>

Hi, I’m trying to plot using Plots.jl with PGFPlotsX.jl as a backend in Visual Studio. I have this error message: No LaTeX installation found, figures will not be generated. Make sure either pdflatex or lualatex are i…

---

## [Can't run Pluto](https://discourse.julialang.org/t/cant-run-pluto/60907)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 4\
**Last updated:** [December 28, 2021, 11:27pm UTC](https://discourse.julialang.org/t/cant-run-pluto/60907 "2021-12-28T23:27:30Z")

</div>

I can’t run Pluto: \[c3e4b0f8\] Pluto v0.14.5 julia version 1.5.4 using Pluto Pluto.run() ERROR: LoadError: ArgumentError: invalid base 10 digit 'n' in "null" Stacktrace: \[1\] tryparse\_internal(::Type{Int64}, ::String,…

---

## [Can't change python bin in PyCall](https://discourse.julialang.org/t/cant-change-python-bin-in-pycall/73736)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 2\
**Last updated:** [December 28, 2021, 11:16pm UTC](https://discourse.julialang.org/t/cant-change-python-bin-in-pycall/73736 "2021-12-28T23:16:23Z")

</div>

Hi all I am using Pluto and want to change PyCall python from conda to the one I use for a script I want to run that has a particular import that conda doesn’t have. I read the PyCall docs and “think” I am doing everyth…

---

## [JSON.print throws stack overflow error](https://discourse.julialang.org/t/json-print-throws-stack-overflow-error/73733)

<div class="topic-metadata">

**Author:** [@cocoa1231](https://discourse.julialang.org/u/cocoa1231)\
**Replies:** 0\
**Last updated:** [December 28, 2021, 11:01pm UTC](https://discourse.julialang.org/t/json-print-throws-stack-overflow-error/73733 "2021-12-28T23:01:11Z")

</div>

So I was trying to export the Plots.PyPlot.matplotlib.rcParams dictionary to a JSON file so I could use that configuration in my Python code (since the default plots made by Plots.jl are quite nice looking), so I wrote t…

---

## [Is Pmap \_both\_ distributed and threaded?](https://discourse.julialang.org/t/is-pmap-both-distributed-and-threaded/73717)

<div class="topic-metadata">

**Author:** [@Chris\_Green](https://discourse.julialang.org/u/Chris_Green)\
**Replies:** 4\
**Last updated:** [December 28, 2021, 9:18pm UTC](https://discourse.julialang.org/t/is-pmap-both-distributed-and-threaded/73717 "2021-12-28T21:18:24Z")

</div>

My typical cluster setup is 20-60 48-core AWS nodes If I use pmap() to distribute work across them, will the cluster workers also distribute their chunk of the map operation among their threads?

---

## [Apply macro to existing function](https://discourse.julialang.org/t/apply-macro-to-existing-function/73725)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [December 28, 2021, 9:01pm UTC](https://discourse.julialang.org/t/apply-macro-to-existing-function/73725 "2021-12-28T21:01:35Z")

</div>

f(x) = x + 1 Given that function is already defined, is it possible to get the result of applying a macro to it? or is the AST not recoverable once the function is defined?

---

## [How to make norm(::AbstractVector) faster in my case?](https://discourse.julialang.org/t/how-to-make-norm-abstractvector-faster-in-my-case/73711)

<div class="topic-metadata">

**Author:** [@ziyiyin97](https://discourse.julialang.org/u/ziyiyin97)\
**Replies:** 14\
**Last updated:** [December 28, 2021, 8:36pm UTC](https://discourse.julialang.org/t/how-to-make-norm-abstractvector-faster-in-my-case/73711 "2021-12-28T20:36:07Z")

</div>

import Base.size import Base.IndexStyle import Base.getindex import Base.setindex! using LinearAlgebra using BenchmarkTools struct Dummy{T} \<: AbstractVector{T} coeffs::Vector{T} end ############### Base ########…

---

## [Saving SharedArrays](https://discourse.julialang.org/t/saving-sharedarrays/73723)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 2\
**Last updated:** [December 28, 2021, 8:22pm UTC](https://discourse.julialang.org/t/saving-sharedarrays/73723 "2021-12-28T20:22:53Z")

</div>

If I generate data as: using Distributed using SharedArrays using JLD2 n\_trials = 10^2; results = SharedArray{Float64}(n\_trials); @sync @distributed for i in 1:n\_trials results\[i\] = i; end jldsave("test.jld2"; res…

---

## [How to request for conda to support Julia install for Windows OS?](https://discourse.julialang.org/t/how-to-request-for-conda-to-support-julia-install-for-windows-os/54092)

<div class="topic-metadata">

**Author:** [@kengonn](https://discourse.julialang.org/u/kengonn)\
**Replies:** 7\
**Last updated:** [December 28, 2021, 7:30pm UTC](https://discourse.julialang.org/t/how-to-request-for-conda-to-support-julia-install-for-windows-os/54092 "2021-12-28T19:30:21Z")

</div>

Hi, I noticed that we can use Anaconda to install Julia, but unfortunately it appears to be available only for Linux and Mac (OSX). How do we request for a Windows version to be made available? Or if it is straightforw…

---

## [Failure to retrieve cache files with language server](https://discourse.julialang.org/t/failure-to-retrieve-cache-files-with-language-server/72489)

<div class="topic-metadata">

**Author:** [@artinmg](https://discourse.julialang.org/u/artinmg)\
**Replies:** 3\
**Last updated:** [December 28, 2021, 6:45pm UTC](https://discourse.julialang.org/t/failure-to-retrieve-cache-files-with-language-server/72489 "2021-12-28T18:45:20Z")

</div>

I’m using Julia 1.7.0 on an M1 Mac with VS Code 1.62.3 and Julia for VS Code 1.5.6. When I load the extension the language server fails to start, giving the following error message: \[ Info: Starting the Julia Language S…

---

## [Reading png rgb channels, Julia vs Python](https://discourse.julialang.org/t/reading-png-rgb-channels-julia-vs-python/73599)

<div class="topic-metadata">

**Author:** [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Replies:** 13\
**Last updated:** [December 28, 2021, 6:43pm UTC](https://discourse.julialang.org/t/reading-png-rgb-channels-julia-vs-python/73599 "2021-12-28T18:43:01Z")

</div>

So here is a very simple 8x8 png image: Opening it in GIMP: So this pixel has RGBA(233, 173, 4, 244) components. Using Python: import imageio img = imageio.imread('img.png') r = img\[:, :, 0\] g = img\[:, :, 1\] b =…

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

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