# Latest

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

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

**Page:** 414

---

## [How to get the loss value from FluxTraining](https://discourse.julialang.org/t/how-to-get-the-loss-value-from-fluxtraining/114118)

<div class="topic-metadata">

**Author:** [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Replies:** 0\
**Last updated:** [May 10, 2024, 5:44pm UTC](https://discourse.julialang.org/t/how-to-get-the-loss-value-from-fluxtraining/114118 "2024-05-10T17:44:36Z")

</div>

Cheers, In FluxTraining.jl, may I please ask how do we get the calculated loss value after executing one epoch with the below instruction? epoch!(learner, ValidationPhase(), validset) Thanks!

---

## [How to verify the compatibility under different Julia versions for a package that is in development?](https://discourse.julialang.org/t/how-to-verify-the-compatibility-under-different-julia-versions-for-a-package-that-is-in-development/114096)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 8\
**Last updated:** [May 10, 2024, 5:27pm UTC](https://discourse.julialang.org/t/how-to-verify-the-compatibility-under-different-julia-versions-for-a-package-that-is-in-development/114096 "2024-05-10T17:27:22Z")

</div>

When developing a package, one has responsibility to check its compatibility under different Julia versions (6. Compatibility · Pkg.jl (julialang.org)). But how to implement this? Specifically, MyPackage.jl was created …

---

## [Technical term for "operator inference" related to multiple dispatch](https://discourse.julialang.org/t/technical-term-for-operator-inference-related-to-multiple-dispatch/114109)

<div class="topic-metadata">

**Author:** [@younes](https://discourse.julialang.org/u/younes)\
**Replies:** 5\
**Last updated:** [May 10, 2024, 5:19pm UTC](https://discourse.julialang.org/t/technical-term-for-operator-inference-related-to-multiple-dispatch/114109 "2024-05-10T17:19:45Z")

</div>

I have defined the operator \< for my custom type Person: begin struct Person name::String age::Int end import Base: \< function \<(a::Person, b::Person)::Bool return a.age \< b.age end # Example …

---

## [3D scenes in GLMakie Glitch out and Slow down after few seconds](https://discourse.julialang.org/t/3d-scenes-in-glmakie-glitch-out-and-slow-down-after-few-seconds/114110)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 8\
**Last updated:** [May 10, 2024, 5:08pm UTC](https://discourse.julialang.org/t/3d-scenes-in-glmakie-glitch-out-and-slow-down-after-few-seconds/114110 "2024-05-10T17:08:58Z")

</div>

I was recently playing around with GLMakie Scenes using the cam3d! camera which works pretty much like plotly() backend on Plots. I was impressed by the zoom in-out controls. However, after a few seconds of scroll…

---

## [Public Reflection API](https://discourse.julialang.org/t/public-reflection-api/114062)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 1\
**Last updated:** [May 10, 2024, 3:51pm UTC](https://discourse.julialang.org/t/public-reflection-api/114062 "2024-05-10T15:51:05Z")

</div>

@oxinabox, noted paragon of virtue, has done some amazing work for the ecosystem making tools for reflection, but those tools rely on internals. She has had this issue open for 7 years: Does anyone have a sense of if…

---

## [\`explode\`-like function in DataFrames](https://discourse.julialang.org/t/explode-like-function-in-dataframes/114113)

<div class="topic-metadata">

**Author:** [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Replies:** 3\
**Last updated:** [May 10, 2024, 3:31pm UTC](https://discourse.julialang.org/t/explode-like-function-in-dataframes/114113 "2024-05-10T15:31:44Z")

</div>

If I have a DataFrame in which one of the columns has Vectors of one of more elements, how do I make each value to be a different row with the rest of the data copied? Ex.: A | B \[1, 17, 9\] | "abc" \[2, 5\] …

---

## [Set default color cycle for densities: transparent color and linecolor](https://discourse.julialang.org/t/set-default-color-cycle-for-densities-transparent-color-and-linecolor/114097)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 5\
**Last updated:** [May 10, 2024, 2:21pm UTC](https://discourse.julialang.org/t/set-default-color-cycle-for-densities-transparent-color-and-linecolor/114097 "2024-05-10T14:21:20Z")

</div>

I believe I have tried any conceivable combination of cycling arguments to the Theme() object. What I am trying to do: I have a default color scheme, lets say: default = \[:red, :black, :blue\] I want the default behavio…

---

## [Diamond dependency: why allow 2 packages with the same name but not 2 versions of same package?](https://discourse.julialang.org/t/diamond-dependency-why-allow-2-packages-with-the-same-name-but-not-2-versions-of-same-package/113924)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 11\
**Last updated:** [May 10, 2024, 1:45pm UTC](https://discourse.julialang.org/t/diamond-dependency-why-allow-2-packages-with-the-same-name-but-not-2-versions-of-same-package/113924 "2024-05-10T13:45:28Z")

</div>

I’m tidying up some old notes. I don’t run into this in practice, but two packages with the same name can exist in the same dependency graph if they don’t directly conflict. For a simpler example and using : to indicate …

---

## [Meaning of xf](https://discourse.julialang.org/t/meaning-of-xf/114009)

<div class="topic-metadata">

**Author:** [@ssrrii](https://discourse.julialang.org/u/ssrrii)\
**Replies:** 5\
**Last updated:** [May 10, 2024, 1:37pm UTC](https://discourse.julialang.org/t/meaning-of-xf/114009 "2024-05-10T13:37:45Z")

</div>

I try to better understand how to write to and read from xlsx-files. But also to better understand the syntax and idea behind it. For writing to a file the function is given: XLSX.openxlsx(wb\_path, mode=“rw”) do xf … …

---

## [Scope of module docstring](https://discourse.julialang.org/t/scope-of-module-docstring/114085)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [May 10, 2024, 12:13pm UTC](https://discourse.julialang.org/t/scope-of-module-docstring/114085 "2024-05-10T12:13:54Z")

</div>

Why does the following work? """ $(EXPORTS) """ module Foo using DocStringExtensions export bar bar() = 1 end Specifically, is the module docstring somehow scoped within the module, so that EXPORTS works? I suspect th…

---

## [Arguing about sloppy science](https://discourse.julialang.org/t/arguing-about-sloppy-science/114103)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 23\
**Last updated:** [May 10, 2024, 12:13pm UTC](https://discourse.julialang.org/t/arguing-about-sloppy-science/114103 "2024-05-10T12:13:49Z")

</div>

Can’t confirm this. Not in our scientific area. Typically, if you publish something where the statistical process isn’t public and can’t be reproduced, I doubt it is passing peer review. Actually I never have seen a pub…

---

## [Refactoring Julia Modules for Shape Representation and Canvas Drawing](https://discourse.julialang.org/t/refactoring-julia-modules-for-shape-representation-and-canvas-drawing/114095)

<div class="topic-metadata">

**Author:** [@Akhil\_Akkapelli](https://discourse.julialang.org/u/Akhil_Akkapelli)\
**Replies:** 1\
**Last updated:** [May 10, 2024, 11:21am UTC](https://discourse.julialang.org/t/refactoring-julia-modules-for-shape-representation-and-canvas-drawing/114095 "2024-05-10T11:21:53Z")

</div>

I have two Julia modules, “Shape.jl” and “Canvas.jl”, which define shapes and a canvas for drawing them. The code works as intended, but I’m wondering if there’s a cleaner and more efficient way to structure these module…

---

## [How often do you upgrade to a new version Julia?](https://discourse.julialang.org/t/how-often-do-you-upgrade-to-a-new-version-julia/114086)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 5\
**Last updated:** [May 10, 2024, 10:37am UTC](https://discourse.julialang.org/t/how-often-do-you-upgrade-to-a-new-version-julia/114086 "2024-05-10T10:37:13Z")

</div>

Will you upgrade as soon as the new version is released?

---

## [Curvefit using nonlinearsolve](https://discourse.julialang.org/t/curvefit-using-nonlinearsolve/114076)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 2\
**Last updated:** [May 10, 2024, 8:29am UTC](https://discourse.julialang.org/t/curvefit-using-nonlinearsolve/114076 "2024-05-10T08:29:01Z")

</div>

Com-langmuir model: qi = Hi \* Ci / (1 + Σ(bi \* Ci) i = 2, q and C was obtained from experiment, here is the data df: Column 1 Column 2 Column 3 Column 4 C\_EA C\_EC q\_EA\_303K q\_EC\_303K 3.46 0.34 7 0.51 5.19 0…

---

## [Can I speed up this recursive set implementation?](https://discourse.julialang.org/t/can-i-speed-up-this-recursive-set-implementation/113917)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 38\
**Last updated:** [May 10, 2024, 7:37am UTC](https://discourse.julialang.org/t/can-i-speed-up-this-recursive-set-implementation/113917 "2024-05-10T07:37:37Z")

</div>

Hey there! I come to you with another performance nerdsnipe, whose solution could have a big impact on the autodiff ecosystem (via SparseConnectivityTracer.jl and DifferentiationInterface.jl). You may remember my first…

---

## [\[ANN\] Symbolics.jl: A Modern Computer Algebra System for a Modern Language](https://discourse.julialang.org/t/ann-symbolics-jl-a-modern-computer-algebra-system-for-a-modern-language/56251)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 146\
**Last updated:** [May 10, 2024, 7:28am UTC](https://discourse.julialang.org/t/ann-symbolics-jl-a-modern-computer-algebra-system-for-a-modern-language/56251 "2024-05-10T07:28:38Z")

</div>

The JuliaSymbolics Organization Roadmap We need new Computer Algebra Systems (CAS) for this new era of computing. We need a CAS that dispatches in the multiple ways we think. We need a CAS that scales exponentially like …

---

## [Tuple to DateTime](https://discourse.julialang.org/t/tuple-to-datetime/114066)

<div class="topic-metadata">

**Author:** [@DTL](https://discourse.julialang.org/u/DTL)\
**Replies:** 4\
**Last updated:** [May 10, 2024, 6:27am UTC](https://discourse.julialang.org/t/tuple-to-datetime/114066 "2024-05-10T06:27:50Z")

</div>

I’m processing a CSV file where I have a couple of years of recordings, there are several readings per hour, and I’m summing them altogether to get a total per day. I get the data into a dataframe ok. julia\> df 32047×…

---

## [Constrained SINDy](https://discourse.julialang.org/t/constrained-sindy/83105)

<div class="topic-metadata">

**Author:** [@ccccc](https://discourse.julialang.org/u/ccccc)\
**Replies:** 8\
**Last updated:** [May 10, 2024, 5:34am UTC](https://discourse.julialang.org/t/constrained-sindy/83105 "2024-05-10T05:34:07Z")

</div>

I know many of the differential equations in a DAE already, and I’m trying to identify the others, using DataDrivenDiffEq. I’m not sure how to constrain the model so that it doesn’t search for all of the equations. Does …

---

## [Can Sagemaker Julia query a S3/Athena table with SQL?](https://discourse.julialang.org/t/can-sagemaker-julia-query-a-s3-athena-table-with-sql/66257)

<div class="topic-metadata">

**Author:** [@Billpete002](https://discourse.julialang.org/u/Billpete002)\
**Replies:** 3\
**Last updated:** [May 10, 2024, 3:00am UTC](https://discourse.julialang.org/t/can-sagemaker-julia-query-a-s3-athena-table-with-sql/66257 "2024-05-10T03:00:39Z")

</div>

Is it possible run a SQL-esque script to pull data within Julia from AWS’s S3/Athena? My Julia instance is located on AWS Sagemaker Jupyter Notebook. Using python in SageMaker easily enough: import boto3 region = boto3…

---

## [Changing the colors of certain boxes in a groupedboxplot](https://discourse.julialang.org/t/changing-the-colors-of-certain-boxes-in-a-groupedboxplot/114074)

<div class="topic-metadata">

**Author:** [@JBH\_84](https://discourse.julialang.org/u/JBH_84)\
**Replies:** 0\
**Last updated:** [May 10, 2024, 1:12am UTC](https://discourse.julialang.org/t/changing-the-colors-of-certain-boxes-in-a-groupedboxplot/114074 "2024-05-10T01:12:42Z")

</div>

i am using plots.jl to create some box and whisker plots. I would like to change the boxes of certain colors in the following graph. however when i tried defining my color array that specified which years i wanted to be…

---

## [Optimization with integrals in both objective and the constraint](https://discourse.julialang.org/t/optimization-with-integrals-in-both-objective-and-the-constraint/113838)

<div class="topic-metadata">

**Author:** [@Ayesha](https://discourse.julialang.org/u/Ayesha)\
**Replies:** 9\
**Last updated:** [May 9, 2024, 11:54pm UTC](https://discourse.julialang.org/t/optimization-with-integrals-in-both-objective-and-the-constraint/113838 "2024-05-09T23:54:36Z")

</div>

I’m trying to optimize a function that has an integral in the objective. While I can perform unconstrained optimization, I’m unsure how to use the Julia optimizer. I am trying to do this to add a constraint later, which …

---

## [How to nest any number of for loops](https://discourse.julialang.org/t/how-to-nest-any-number-of-for-loops/114067)

<div class="topic-metadata">

**Author:** [@Marco-Congedo](https://discourse.julialang.org/u/Marco-Congedo)\
**Replies:** 8\
**Last updated:** [May 9, 2024, 10:14pm UTC](https://discourse.julialang.org/t/how-to-nest-any-number-of-for-loops/114067 "2024-05-09T22:14:32Z")

</div>

I need to iterate over all combinations of k permutations of integers (1:n). Say, k=2 and n=2. The permutations of (1:2) are \[1, 2\] \[2, 1\] and what i need is \[1, 2\] , \[1, 2\] \[1, 2\] , \[2, 1\] \[2, 1\] , \[1, 2\] \[2, 1…

---

## [Dual ray from LP solved by dual algorithm](https://discourse.julialang.org/t/dual-ray-from-lp-solved-by-dual-algorithm/114068)

<div class="topic-metadata">

**Author:** [@ShGE](https://discourse.julialang.org/u/ShGE)\
**Replies:** 3\
**Last updated:** [May 9, 2024, 9:22pm UTC](https://discourse.julialang.org/t/dual-ray-from-lp-solved-by-dual-algorithm/114068 "2024-05-09T21:22:07Z")

</div>

Hello I solve an LP using CPLEX and fix the following parameters: set\_optimizer\_attribute(sub, "CPX\_PARAM\_REDUCE", 0) set\_optimizer\_attribute(sub, "CPX\_PARAM\_NUMERICALEMPHASIS", 1) # Emphasize numerical precis…

---

## [Extracting the loglikelihood function from GLM?](https://discourse.julialang.org/t/extracting-the-loglikelihood-function-from-glm/113849)

<div class="topic-metadata">

**Author:** [@alexfakos](https://discourse.julialang.org/u/alexfakos)\
**Replies:** 6\
**Last updated:** [May 9, 2024, 8:54pm UTC](https://discourse.julialang.org/t/extracting-the-loglikelihood-function-from-glm/113849 "2024-05-09T20:54:49Z")

</div>

I am trying to extract the loglikelihood function that maps the parameter vector to each observation. The goal is to use the likelihood function to generate the score and hessian for each observation to use for inference…

---

## [Solved to optimlity but status is infeasible](https://discourse.julialang.org/t/solved-to-optimlity-but-status-is-infeasible/114054)

<div class="topic-metadata">

**Author:** [@ShGE](https://discourse.julialang.org/u/ShGE)\
**Replies:** 4\
**Last updated:** [May 9, 2024, 7:59pm UTC](https://discourse.julialang.org/t/solved-to-optimlity-but-status-is-infeasible/114054 "2024-05-09T19:59:53Z")

</div>

Hello there println("=================================================") println(" Optimal Solution Status: ", termination\_status(sub)) println(" Optimal Value: ", objective\_value(sub)) println("========…

---

## [How to read a parquet file applying a filter?](https://discourse.julialang.org/t/how-to-read-a-parquet-file-applying-a-filter/113982)

<div class="topic-metadata">

**Author:** [@laygr](https://discourse.julialang.org/u/laygr)\
**Replies:** 4\
**Last updated:** [May 9, 2024, 7:12pm UTC](https://discourse.julialang.org/t/how-to-read-a-parquet-file-applying-a-filter/113982 "2024-05-09T19:12:59Z")

</div>

In python, we can do: import pyarrow.parquet as pq filter = ('some\_column', '=', 'some\_value') pq.read\_table(file\_path, filters=\[filter\]).to\_pandas() How can I apply a filter similarly when reading a parquet file in Ju…

---

## [How to implement an objective function in Jump](https://discourse.julialang.org/t/how-to-implement-an-objective-function-in-jump/113422)

<div class="topic-metadata">

**Author:** [@Coral](https://discourse.julialang.org/u/Coral)\
**Replies:** 8\
**Last updated:** [May 9, 2024, 6:42pm UTC](https://discourse.julialang.org/t/how-to-implement-an-objective-function-in-jump/113422 "2024-05-09T18:42:48Z")

</div>

Hello everyone, I am implementing an optimization problem for a satellite that has to move from a radius 1 orbit to a radius 2 orbit. The objective of my optimization is to minimize the required deltaV. I am trying to d…

---

## [\[INTRO\] JuliaFinance](https://discourse.julialang.org/t/intro-juliafinance/20571)

<div class="topic-metadata">

**Author:** [@anon67531922](https://discourse.julialang.org/u/anon67531922)\
**Replies:** 20\
**Last updated:** [May 9, 2024, 1:10pm UTC](https://discourse.julialang.org/t/intro-juliafinance/20571 "2024-05-09T13:10:41Z")

</div>

Hi everyone, A few of us are interested in developing financial applications using Julia. To date, the lowest hanging fruits have been in the domains of “quant” analysis and economics and each of those have respective …

---

## [Feasibility of using Julia to create a DLL connected to Java](https://discourse.julialang.org/t/feasibility-of-using-julia-to-create-a-dll-connected-to-java/114056)

<div class="topic-metadata">

**Author:** [@TravisB](https://discourse.julialang.org/u/TravisB)\
**Replies:** 7\
**Last updated:** [May 9, 2024, 6:33pm UTC](https://discourse.julialang.org/t/feasibility-of-using-julia-to-create-a-dll-connected-to-java/114056 "2024-05-09T18:33:23Z")

</div>

I’m researching which language is best to create a physics engine and would like to use Julia. The requirements are simply that I must be able to produce a DLL which can pass custom data types to/from a front end, writte…

---

## [How to import data from MATLAB \`.mat\` files?](https://discourse.julialang.org/t/how-to-import-data-from-matlab-mat-files/114059)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 3\
**Last updated:** [May 9, 2024, 3:35pm UTC](https://discourse.julialang.org/t/how-to-import-data-from-matlab-mat-files/114059 "2024-05-09T15:35:10Z")

</div>

Can Julia import data from .mat files directly?

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

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