# Latest

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

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

**Page:** 891

---

## [Error when running a simple ANN model in Flux](https://discourse.julialang.org/t/error-when-running-a-simple-ann-model-in-flux/88890)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 3:41pm UTC](https://discourse.julialang.org/t/error-when-running-a-simple-ann-model-in-flux/88890 "2022-10-19T15:41:49Z")

</div>

Hi I am trying to run a simple ANN model in flux but having trouble with understanding the errors. Any idea what I am doing incorrectly # Shapes : X\_train : (204,2) , X\_val : (51,2), y\_train : (204,3), y\_val : (51,3) #…

---

## [Probe if a variable exists in a JLD2-file](https://discourse.julialang.org/t/probe-if-a-variable-exists-in-a-jld2-file/88969)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 3\
**Last updated:** [October 19, 2022, 3:31pm UTC](https://discourse.julialang.org/t/probe-if-a-variable-exists-in-a-jld2-file/88969 "2022-10-19T15:31:59Z")

</div>

Is there a way to probe / evaluate if a variable exists in a JLD2-file?

---

## [Supertype in Julia](https://discourse.julialang.org/t/supertype-in-julia/88930)

<div class="topic-metadata">

**Author:** [@Fourier](https://discourse.julialang.org/u/Fourier)\
**Replies:** 15\
**Last updated:** [October 19, 2022, 3:29pm UTC](https://discourse.julialang.org/t/supertype-in-julia/88930 "2022-10-19T15:29:34Z")

</div>

Imagine someone else has implemented something, say a type and a function: struct Foo a::Int end function bar(x::Foo) return x.a end I would like to build on what he has implemented, I would like to use the fu…

---

## [Exponential equation solver?](https://discourse.julialang.org/t/exponential-equation-solver/88807)

<div class="topic-metadata">

**Author:** [@lesshaste](https://discourse.julialang.org/u/lesshaste)\
**Replies:** 6\
**Last updated:** [October 19, 2022, 2:54pm UTC](https://discourse.julialang.org/t/exponential-equation-solver/88807 "2022-10-19T14:54:48Z")

</div>

Is there a Julia package can solve exponential equations such as 4^x + 6^x == 9^x? sympy can’t do this and I looked at Symbolics but I don’t think that can either.

---

## [SQLite backup](https://discourse.julialang.org/t/sqlite-backup/88654)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 5\
**Last updated:** [October 19, 2022, 2:33pm UTC](https://discourse.julialang.org/t/sqlite-backup/88654 "2022-10-19T14:33:29Z")

</div>

Hi, Is there a way of using sqlite.jl to execute the API commands like sqlite3\_backup\_init() ?

---

## [Scope of variables](https://discourse.julialang.org/t/scope-of-variables/88957)

<div class="topic-metadata">

**Author:** [@jrocha](https://discourse.julialang.org/u/jrocha)\
**Replies:** 3\
**Last updated:** [October 19, 2022, 2:33pm UTC](https://discourse.julialang.org/t/scope-of-variables/88957 "2022-10-19T14:33:10Z")

</div>

Hi, I’m having trouble to define the scope of a variable in a simple Lagrange interpolation code, i got this “UndefVarError: i not defined”. I wonder how can i define this “i” variable, it should be local as it is used …

---

## [Two Julia instances](https://discourse.julialang.org/t/two-julia-instances/88963)

<div class="topic-metadata">

**Author:** [@Rohan\_Rajagopal](https://discourse.julialang.org/u/Rohan_Rajagopal)\
**Replies:** 2\
**Last updated:** [October 19, 2022, 12:49pm UTC](https://discourse.julialang.org/t/two-julia-instances/88963 "2022-10-19T12:49:14Z")

</div>

Good day, Whenever I open VS Code and connect it to Julia REPL, it seems that VS Code opens two Julia instances is this how it works general. Please see the following snapshot from the Activity Monitor. Thanks very muc…

---

## [Problems installing Sundials](https://discourse.julialang.org/t/problems-installing-sundials/88415)

<div class="topic-metadata">

**Author:** [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Replies:** 15\
**Last updated:** [October 19, 2022, 12:31pm UTC](https://discourse.julialang.org/t/problems-installing-sundials/88415 "2022-10-19T12:31:10Z")

</div>

Hi, I am trying to install the latest version of Sundials on windows but I keep getting this permission denied message. I am running with cmd as an administrator (@v1.8) pkg\> activate --temp Activating new project at …

---

## [Language server - missing references](https://discourse.julialang.org/t/language-server-missing-references/88936)

<div class="topic-metadata">

**Author:** [@Kruxigt](https://discourse.julialang.org/u/Kruxigt)\
**Replies:** 19\
**Last updated:** [October 19, 2022, 12:30pm UTC](https://discourse.julialang.org/t/language-server-missing-references/88936 "2022-10-19T12:30:53Z")

</div>

Hello! I’m trying to use the Helix editor with the Julia LanguageServer. The call to the language server looks like: julia --startup-file=yes --history-file=no --quiet -e using LanguageServer; runserver() Now, the …

---

## [Change Julia version for a Jupyter notebook](https://discourse.julialang.org/t/change-julia-version-for-a-jupyter-notebook/44359)

<div class="topic-metadata">

**Author:** [@Ryan\_Chan](https://discourse.julialang.org/u/Ryan_Chan)\
**Replies:** 1\
**Last updated:** [August 5, 2020, 9:09pm UTC](https://discourse.julialang.org/t/change-julia-version-for-a-jupyter-notebook/44359 "2020-08-05T21:09:33Z")

</div>

Hi all, I have recently started to learn Julia and have been using JuliaAcademy. I have downloaded the latest Julia version (v1.5.0), however, the Jupyter notebooks for the courses are written in Julia 1.4.2. This mean…

---

## [\[ANN\] MakiePublication.jl: Creating publication-quality figures with Makie](https://discourse.julialang.org/t/ann-makiepublication-jl-creating-publication-quality-figures-with-makie/88937)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 11\
**Last updated:** [October 19, 2022, 11:48am UTC](https://discourse.julialang.org/t/ann-makiepublication-jl-creating-publication-quality-figures-with-makie/88937 "2022-10-19T11:48:42Z")

</div>

MakiePublication.jl is a Julia package for producing publication-quality figures based on Makie.jl. It aims to provide equivalent functionalities as the Python package mpltex. Features: Provide a collection of custom …

---

## [Tests failing while running Base.runtests("Pkg")](https://discourse.julialang.org/t/tests-failing-while-running-base-runtests-pkg/88941)

<div class="topic-metadata">

**Author:** [@Vinod\_Kumar\_K](https://discourse.julialang.org/u/Vinod_Kumar_K)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 10:37am UTC](https://discourse.julialang.org/t/tests-failing-while-running-base-runtests-pkg/88941 "2022-10-19T10:37:56Z")

</div>

julia\> Base.runtests(“Pkg”) Running parallel tests with: nworkers() = 1 nthreads() = 1 Sys.CPU\_THREADS = 4 Sys.total\_memory() = 8192.000 PiB Sys.free\_memory() = 8192.000 PiB Test (Worker) | Time (s) | GC (s) | GC…

---

## [Export notebook to html, plots not rendered in html](https://discourse.julialang.org/t/export-notebook-to-html-plots-not-rendered-in-html/88953)

<div class="topic-metadata">

**Author:** [@luboshanus](https://discourse.julialang.org/u/luboshanus)\
**Replies:** 0\
**Last updated:** [October 19, 2022, 10:22am UTC](https://discourse.julialang.org/t/export-notebook-to-html-plots-not-rendered-in-html/88953 "2022-10-19T10:22:42Z")

</div>

Hi, when I export a julia notebook .ipynb to html it does not export images from Plots.jl well and they are depicted as a svg html code not rendered. With PyPlot.jl the figures show as expected. I don’t know if the pro…

---

## [How can I copy a Julia 1.0 installation from my computer to a computer without Internet ?](https://discourse.julialang.org/t/how-can-i-copy-a-julia-1-0-installation-from-my-computer-to-a-computer-without-internet/14855)

<div class="topic-metadata">

**Author:** [@vladimir](https://discourse.julialang.org/u/vladimir)\
**Replies:** 8\
**Last updated:** [October 19, 2022, 10:16am UTC](https://discourse.julialang.org/t/how-can-i-copy-a-julia-1-0-installation-from-my-computer-to-a-computer-without-internet/14855 "2022-10-19T10:16:15Z")

</div>

How can I copy a Julia 1.0 installation from my computer to a computer without Internet ? Can I select arbitrary directories for Julia and packages (instead of C:\\users\<username\>.julia) on the target computer? Can you …

---

## [Package error Base does not have xxx in its dependencies](https://discourse.julialang.org/t/package-error-base-does-not-have-xxx-in-its-dependencies/60255)

<div class="topic-metadata">

**Author:** [@spatJul](https://discourse.julialang.org/u/spatJul)\
**Replies:** 7\
**Last updated:** [October 19, 2022, 10:08am UTC](https://discourse.julialang.org/t/package-error-base-does-not-have-xxx-in-its-dependencies/60255 "2022-10-19T10:08:48Z")

</div>

Trying to create Package get error If you have Base checked out for development and have │ added xxx as a dependency but haven’t updated your primary │ environment’s manifest file, try Pkg.resolve(). │ - Otherwis…

---

## [Interpolate a function in an Expr (macro) in called module scope](https://discourse.julialang.org/t/interpolate-a-function-in-an-expr-macro-in-called-module-scope/88952)

<div class="topic-metadata">

**Author:** [@circonflexe](https://discourse.julialang.org/u/circonflexe)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 10:02am UTC](https://discourse.julialang.org/t/interpolate-a-function-in-an-expr-macro-in-called-module-scope/88952 "2022-10-19T10:02:20Z")

</div>

Here is some (heavily simplified) code: module M function foobar end macro define\_foobar\_method() :($foobar() = 1) end end # module M Note that the function foobar is not exported by the module M; I would like the ma…

---

## [Iteration with companion matrix to make future estimates](https://discourse.julialang.org/t/iteration-with-companion-matrix-to-make-future-estimates/88911)

<div class="topic-metadata">

**Author:** [@Filippati](https://discourse.julialang.org/u/Filippati)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 9:11am UTC](https://discourse.julialang.org/t/iteration-with-companion-matrix-to-make-future-estimates/88911 "2022-10-19T09:11:21Z")

</div>

Hello everyone, I have just started to learn Julia, and Julia is the only language with which I’ve worked for more than 3 months, so I am new to programming in general. I need to make 46 future quarterly estimates of in…

---

## [What exactly qualifies as „lexically enclosed use“ when using @sync?](https://discourse.julialang.org/t/what-exactly-qualifies-as-lexically-enclosed-use-when-using-sync/88922)

<div class="topic-metadata">

**Author:** [@told](https://discourse.julialang.org/u/told)\
**Replies:** 2\
**Last updated:** [October 19, 2022, 8:34am UTC](https://discourse.julialang.org/t/what-exactly-qualifies-as-lexically-enclosed-use-when-using-sync/88922 "2022-10-19T08:34:50Z")

</div>

The documentation for @sync states that: Wait until all lexically-enclosed uses of @async , @spawn , @spawnat and @distributed are complete. All exceptions thrown by enclosed async operations are collected and thrown …

---

## [Polynomial : From AbstractAlgebra to MultivariatePolynomials](https://discourse.julialang.org/t/polynomial-from-abstractalgebra-to-multivariatepolynomials/88844)

<div class="topic-metadata">

**Author:** [@Luca](https://discourse.julialang.org/u/Luca)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 7:42am UTC](https://discourse.julialang.org/t/polynomial-from-abstractalgebra-to-multivariatepolynomials/88844 "2022-10-19T07:42:38Z")

</div>

Dear all, I am using AbstractAlgebra.jl to create polynomials in a Julia code. I would like to use HomotopyContinuation.jl package and I should pass to this package polynomial created bt MultivariatePolynomial.jl. I am …

---

## [Julia Copenhagen Meetup November 9th - Save the Date](https://discourse.julialang.org/t/julia-copenhagen-meetup-november-9th-save-the-date/88226)

<div class="topic-metadata">

**Author:** [@wc4wc4wc4](https://discourse.julialang.org/u/wc4wc4wc4)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 7:24am UTC](https://discourse.julialang.org/t/julia-copenhagen-meetup-november-9th-save-the-date/88226 "2022-10-19T07:24:21Z")

</div>

Save the date for the next Julia Copenhagen meetup which is going to Wednessday the 9th of November! The event will be close to DTU in Lyngby, more information to come later on. We will have a main speaker at the event…

---

## [CTRL-C crashing REPL in hot loop](https://discourse.julialang.org/t/ctrl-c-crashing-repl-in-hot-loop/88915)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 2\
**Last updated:** [October 19, 2022, 6:18am UTC](https://discourse.julialang.org/t/ctrl-c-crashing-repl-in-hot-loop/88915 "2022-10-19T06:18:01Z")

</div>

I experienced this issue on Julia 1.8.2 (Windows), with a fairly complex Dash app (+ DataFrames, CSV and other packages in an environment). It even happend with a hot loop: while true end # CTRL-C This kills the workf…

---

## [Test failures for Sockets ,Base.runtests("Sockets")](https://discourse.julialang.org/t/test-failures-for-sockets-base-runtests-sockets/88898)

<div class="topic-metadata">

**Author:** [@Vinod\_Kumar\_K](https://discourse.julialang.org/u/Vinod_Kumar_K)\
**Replies:** 2\
**Last updated:** [October 19, 2022, 4:23am UTC](https://discourse.julialang.org/t/test-failures-for-sockets-base-runtests-sockets/88898 "2022-10-19T04:23:47Z")

</div>

Error in testset Sockets: Error During Test at /julia/juliabuild/usr/share/julia/stdlib/v1.8/Sockets/test/runtests.jl:376 Got exception outside of a @test InexactError: trunc(UInt16, 65536) Stacktrace: \[1\] throw\_ine…

---

## [How to get the number of workers in a machine or cluster node?](https://discourse.julialang.org/t/how-to-get-the-number-of-workers-in-a-machine-or-cluster-node/88925)

<div class="topic-metadata">

**Author:** [@decarvalhojuniorfh](https://discourse.julialang.org/u/decarvalhojuniorfh)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 3:54am UTC](https://discourse.julialang.org/t/how-to-get-the-number-of-workers-in-a-machine-or-cluster-node/88925 "2022-10-19T03:54:30Z")

</div>

In a distributed program, how do you programmatically obtain the number of workers on the node of a cluster where a code is running? For example, if there were 6 workers launched using addprocs (\[(“machine1", 4), (“mach…

---

## [@match string startswith endswith](https://discourse.julialang.org/t/match-string-startswith-endswith/87797)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 4\
**Last updated:** [October 19, 2022, 3:53am UTC](https://discourse.julialang.org/t/match-string-startswith-endswith/87797 "2022-10-19T03:53:10Z")

</div>

Is there a @match equivalent of this? type = startswith(ticker,"ABC") ? "M1" : startswith(ticker,"X") ? "M2" : contains(ticker,"123") ? "M3" : endswith(ticker,"end") …

---

## [JuliaInXL where is the installer?](https://discourse.julialang.org/t/juliainxl-where-is-the-installer/88795)

<div class="topic-metadata">

**Author:** [@DavidTaylor](https://discourse.julialang.org/u/DavidTaylor)\
**Replies:** 4\
**Last updated:** [October 19, 2022, 3:47am UTC](https://discourse.julialang.org/t/juliainxl-where-is-the-installer/88795 "2022-10-19T03:47:51Z")

</div>

JuliaInXL; where is the windows installer?

---

## [Managing package dependencies while developing](https://discourse.julialang.org/t/managing-package-dependencies-while-developing/88899)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 2\
**Last updated:** [October 19, 2022, 1:54am UTC](https://discourse.julialang.org/t/managing-package-dependencies-while-developing/88899 "2022-10-19T01:54:14Z")

</div>

I’m working on a PR for Documenter and would like to locally build its documentation. So I activate Documenter.jl/docs/Project.toml, type \] dev .. to make sure my newest version of Documenter is used, and run \] instant…

---

## [Image Resolution using Algebra of Graphics \[Makie\]](https://discourse.julialang.org/t/image-resolution-using-algebra-of-graphics-makie/88934)

<div class="topic-metadata">

**Author:** [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 12:46am UTC](https://discourse.julialang.org/t/image-resolution-using-algebra-of-graphics-makie/88934 "2022-10-19T00:46:43Z")

</div>

Hi, How can I improve the quality of the figures of the Algebra of Graphics on Pluto? The quality of the output figures on my Laptop was very low (resolution problems ?; my laptop has a 4K display) when compared with th…

---

## [Performant Alternatives to mapslices](https://discourse.julialang.org/t/performant-alternatives-to-mapslices/84651)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 4\
**Last updated:** [October 18, 2022, 11:30pm UTC](https://discourse.julialang.org/t/performant-alternatives-to-mapslices/84651 "2022-10-18T23:30:37Z")

</div>

There are a few discussions I’ve found on this already, but I’m hoping my use case is simple enough that a solution already exists. Related: enumerate() like equivalents for iterating over columns/rows of a matrix · Iss…

---

## [Advice for efficient code containing many lookup table access values](https://discourse.julialang.org/t/advice-for-efficient-code-containing-many-lookup-table-access-values/86522)

<div class="topic-metadata">

**Author:** [@davidbp](https://discourse.julialang.org/u/davidbp)\
**Replies:** 9\
**Last updated:** [October 18, 2022, 11:24pm UTC](https://discourse.julialang.org/t/advice-for-efficient-code-containing-many-lookup-table-access-values/86522 "2022-10-18T23:24:24Z")

</div>

Dear Julians, I want to speed up the following code that iterates over a matrix containing n\_examples vectors of size n\_features. These vectors, stored in PQ, have eltype Integer with values in the range 1 to n\_clust…

---

## [Time to first plot with system image not as good as expected](https://discourse.julialang.org/t/time-to-first-plot-with-system-image-not-as-good-as-expected/87428)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 11\
**Last updated:** [October 18, 2022, 10:36pm UTC](https://discourse.julialang.org/t/time-to-first-plot-with-system-image-not-as-good-as-expected/87428 "2022-10-18T22:36:28Z")

</div>

I am trying to reduce the time-to-first-plot by using a system image. What I am doing is explained in detail here: GitHub - ufechner7/Plotting: Demo for using InspectDR If you are using Linux you can easily reproduce my…

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

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