# Latest

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

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

**Page:** 928

---

## [Making types available across all submodules](https://discourse.julialang.org/t/making-types-available-across-all-submodules/87125)

<div class="topic-metadata">

**Author:** [@Tharsalys](https://discourse.julialang.org/u/Tharsalys)\
**Replies:** 7\
**Last updated:** [September 12, 2022, 11:05am UTC](https://discourse.julialang.org/t/making-types-available-across-all-submodules/87125 "2022-09-12T11:05:47Z")

</div>

I have a main module and some submodules. Right now, there’s a types.jl in the main module whose types are also required in the submodules. But naturally I can’t make these types accessible in the submodules without incl…

---

## [Intraday prices from Yahoo with MarketData.jl?](https://discourse.julialang.org/t/intraday-prices-from-yahoo-with-marketdata-jl/87122)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 1\
**Last updated:** [September 12, 2022, 10:17am UTC](https://discourse.julialang.org/t/intraday-prices-from-yahoo-with-marketdata-jl/87122 "2022-09-12T10:17:08Z")

</div>

Is it possible to get intraday prices from Yahoo using MarketData.jl?

---

## [Metaprograming, function eval not works as expected](https://discourse.julialang.org/t/metaprograming-function-eval-not-works-as-expected/87119)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 2\
**Last updated:** [September 12, 2022, 9:17am UTC](https://discourse.julialang.org/t/metaprograming-function-eval-not-works-as-expected/87119 "2022-09-12T09:17:23Z")

</div>

I has had always been confusing on Julia Metaprograming. Here is an example: I have a variable: const SAer = 1 How can I define a macro like: macro Ticker\_str(x) #do someting end to get this: v=Ticker"SA" # v …

---

## [Cumulative product?](https://discourse.julialang.org/t/cumulative-product/87118)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 1\
**Last updated:** [September 12, 2022, 8:51am UTC](https://discourse.julialang.org/t/cumulative-product/87118 "2022-09-12T08:51:38Z")

</div>

What is the equivalent of cumsum for the product? For example, for the vector \[2;2;2;5\] I am looking for a function to get: cumprod = \[2;4;8;40\]

---

## [Starting from MATLAB code, how do I use ode45 to solve Navier-Stokes in Julia?](https://discourse.julialang.org/t/starting-from-matlab-code-how-do-i-use-ode45-to-solve-navier-stokes-in-julia/84187)

<div class="topic-metadata">

**Author:** [@simonluzara](https://discourse.julialang.org/u/simonluzara)\
**Replies:** 37\
**Last updated:** [September 12, 2022, 8:45am UTC](https://discourse.julialang.org/t/starting-from-matlab-code-how-do-i-use-ode45-to-solve-navier-stokes-in-julia/84187 "2022-09-12T08:45:06Z")

</div>

I’m a new Julia user but matlab expert(I am tired of paying them). I want to call back certain values on my ode during solving. I have watched the tutorial from Chris https://www.youtube.com/watch?v=KPEqYtEd-zY but not …

---

## [How to delete rows in DataFrame?](https://discourse.julialang.org/t/how-to-delete-rows-in-dataframe/86993)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 4\
**Last updated:** [September 12, 2022, 8:44am UTC](https://discourse.julialang.org/t/how-to-delete-rows-in-dataframe/86993 "2022-09-12T08:44:25Z")

</div>

group=\[:A,:A,:B,:B,:C,:C,:C,:C\] X = 100:108 df = DataFrame(; group, X) julia\> df = DataFrame(; group, X) 8×2 DataFrame Row │ group X │ Symbol Int64 ─────┼─────────────── 1 │ A 101 2 │ A …

---

## [Anonymous Functions](https://discourse.julialang.org/t/anonymous-functions/87106)

<div class="topic-metadata">

**Author:** [@yoshi](https://discourse.julialang.org/u/yoshi)\
**Replies:** 2\
**Last updated:** [September 12, 2022, 8:42am UTC](https://discourse.julialang.org/t/anonymous-functions/87106 "2022-09-12T08:42:02Z")

</div>

There’s a block of code example that I’m trying to understand here: using DiffEqGPU, OrdinaryDiffEq function lorenz(du,u,p,t) du\[1\] = p\[1\]\*(u\[2\]-u\[1\]) du\[2\] = u\[1\]\*(p\[2\]-u\[3\]) - u\[2\] du\[3\] = u\[1\]\*u\[2\] - p\[3\]…

---

## [Best Practices for Using "Off-the-Shelf" ML Solutions?](https://discourse.julialang.org/t/best-practices-for-using-off-the-shelf-ml-solutions/86991)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 1\
**Last updated:** [September 12, 2022, 7:54am UTC](https://discourse.julialang.org/t/best-practices-for-using-off-the-shelf-ml-solutions/86991 "2022-09-12T07:54:25Z")

</div>

Hi folks! :wave: I am not a formal ML researcher (I couldn’t tell you how to build a Neural Network from scratch) but I know about ML models and when what species of models make sense for what problems. A question that…

---

## [CxxWrap and IO and iostream](https://discourse.julialang.org/t/cxxwrap-and-io-and-iostream/87116)

<div class="topic-metadata">

**Author:** [@nabla](https://discourse.julialang.org/u/nabla)\
**Replies:** 0\
**Last updated:** [September 12, 2022, 7:54am UTC](https://discourse.julialang.org/t/cxxwrap-and-io-and-iostream/87116 "2022-09-12T07:54:22Z")

</div>

I love CxxWrap, but I can’t find anywhere in the tutorials or documentation how to wrap a read/write C++ method into Julia. More specifically: the C++ code I want to wrap has an object X with methods X.write(ostream &s) …

---

## [Copy the return value of a function to the clipboard](https://discourse.julialang.org/t/copy-the-return-value-of-a-function-to-the-clipboard/87112)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 1\
**Last updated:** [September 12, 2022, 7:54am UTC](https://discourse.julialang.org/t/copy-the-return-value-of-a-function-to-the-clipboard/87112 "2022-09-12T07:54:10Z")

</div>

I have a function that returns a string, how can I make it so that when the function terminates the result is automatically copied to the clipboard (ctrl + c)? Thank you.

---

## [Seasonal storage balance constraint](https://discourse.julialang.org/t/seasonal-storage-balance-constraint/87098)

<div class="topic-metadata">

**Author:** [@mbah](https://discourse.julialang.org/u/mbah)\
**Replies:** 3\
**Last updated:** [September 12, 2022, 7:11am UTC](https://discourse.julialang.org/t/seasonal-storage-balance-constraint/87098 "2022-09-12T07:11:58Z")

</div>

Hello all, I am trying to code up a seasonal storage balance constraint. The idea is to limit the total generation over a time range by a particular amount for each of the seasonal storage plants (see Table). I have tr…

---

## [Julia in Colab suddenly does not work](https://discourse.julialang.org/t/julia-in-colab-suddenly-does-not-work/87108)

<div class="topic-metadata">

**Author:** [@Shuo\_Z](https://discourse.julialang.org/u/Shuo_Z)\
**Replies:** 0\
**Last updated:** [September 12, 2022, 5:27am UTC](https://discourse.julialang.org/t/julia-in-colab-suddenly-does-not-work/87108 "2022-09-12T05:27:47Z")

</div>

I had been using Julia in Colab for months, it had been working well until 8th Sep. The template I use is: Julia Template Colab The installation (1st cell) suddenly cannot be complete. I tried to change runtime type, …

---

## [\[ANN\] SurvivalAnalysis.jl](https://discourse.julialang.org/t/ann-survivalanalysis-jl/86680)

<div class="topic-metadata">

**Author:** [@RaphaelS1](https://discourse.julialang.org/u/RaphaelS1)\
**Replies:** 9\
**Last updated:** [September 11, 2022, 4:05pm UTC](https://discourse.julialang.org/t/ann-survivalanalysis-jl/86680 "2022-09-11T16:05:46Z")

</div>

Very happy to announce my first Julia package SurvivalAnalysis.jl v0.1.0! (See original tweet announcement here). The package implements features for survival analysis (AKA: time-to-event modelling, reliability analysis…

---

## [How Bayesian estimation of parameters of ODE system is done?](https://discourse.julialang.org/t/how-bayesian-estimation-of-parameters-of-ode-system-is-done/87092)

<div class="topic-metadata">

**Author:** [@vembha](https://discourse.julialang.org/u/vembha)\
**Replies:** 4\
**Last updated:** [September 11, 2022, 10:19pm UTC](https://discourse.julialang.org/t/how-bayesian-estimation-of-parameters-of-ode-system-is-done/87092 "2022-09-11T22:19:46Z")

</div>

Hello people, I tried to find texts, journal articles, blog posts, etc., to understand how Bayesian estimation (for example, NUTS) works for ODE parameter estimation, but I could not. None of the material I found on the…

---

## [BitVector Adapt GPUs](https://discourse.julialang.org/t/bitvector-adapt-gpus/86500)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 25\
**Last updated:** [September 11, 2022, 9:52pm UTC](https://discourse.julialang.org/t/bitvector-adapt-gpus/86500 "2022-09-11T21:52:54Z")

</div>

I have a custom type which contains a BitVector. struct customType{T\<:AbstractFloat} code::BitVector s\_chipLength::T … end I’m trying to use Adapt.@adapt\_structure customType{Float64} It still fails with isbitstyp…

---

## [How can I pass the pointer of MPI communicator to c function?](https://discourse.julialang.org/t/how-can-i-pass-the-pointer-of-mpi-communicator-to-c-function/87070)

<div class="topic-metadata">

**Author:** [@dora\_ho](https://discourse.julialang.org/u/dora_ho)\
**Replies:** 3\
**Last updated:** [September 11, 2022, 8:55pm UTC](https://discourse.julialang.org/t/how-can-i-pass-the-pointer-of-mpi-communicator-to-c-function/87070 "2022-09-11T20:55:51Z")

</div>

I have a c function that requires me to pass a comm pointer to the function I converted the function using Clang.jl showed below function Comm(comm\_handle) ccall((:Comm, librarypath), Cint, (Ptr{Cvoid}), comm\_hand…

---

## [Why there is no OOP (object oriented programming) in Julia?](https://discourse.julialang.org/t/why-there-is-no-oop-object-oriented-programming-in-julia/86723)

<div class="topic-metadata">

**Author:** [@haghighat](https://discourse.julialang.org/u/haghighat)\
**Replies:** 57\
**Last updated:** [September 11, 2022, 8:34pm UTC](https://discourse.julialang.org/t/why-there-is-no-oop-object-oriented-programming-in-julia/86723 "2022-09-11T20:34:13Z")

</div>

I am coming from Matlab and Python background and I have recently started considering Julia seriously for software development. My main question is why Julia is not designed as OOP like python? As far as I can see OOP i…

---

## [About limitations and mismatch in set of identifiers when using PyJulia](https://discourse.julialang.org/t/about-limitations-and-mismatch-in-set-of-identifiers-when-using-pyjulia/87042)

<div class="topic-metadata">

**Author:** [@AntoineRestivo](https://discourse.julialang.org/u/AntoineRestivo)\
**Replies:** 5\
**Last updated:** [September 11, 2022, 8:01pm UTC](https://discourse.julialang.org/t/about-limitations-and-mismatch-in-set-of-identifiers-when-using-pyjulia/87042 "2022-09-11T20:01:19Z")

</div>

Hi everyone, I am interested to make a package available for python users. I understood that the right tool would be PyJulia. The point is, as I understand it has some limitations about the comprehension of valid identif…

---

## [Announcing Postman.jl](https://discourse.julialang.org/t/announcing-postman-jl/87091)

<div class="topic-metadata">

**Author:** [@rssdev10](https://discourse.julialang.org/u/rssdev10)\
**Replies:** 0\
**Last updated:** [September 11, 2022, 6:24pm UTC](https://discourse.julialang.org/t/announcing-postman-jl/87091 "2022-09-11T18:24:07Z")

</div>

Postman.jl is a simple parser/runner of Postman collections with minimal coverage of the Postman collection format. The primary purpose of this project is to allow the reuse of Postman’s manually created requests for un…

---

## [How to update Julia in Juliaup?](https://discourse.julialang.org/t/how-to-update-julia-in-juliaup/87067)

<div class="topic-metadata">

**Author:** [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Replies:** 7\
**Last updated:** [September 11, 2022, 5:04pm UTC](https://discourse.julialang.org/t/how-to-update-julia-in-juliaup/87067 "2022-09-11T17:04:59Z")

</div>

I’m using Juliaup in my Windows OS, and now I’m waiting for Julia 1.8.1 to be installable by Juliaup. In their Github, they stated that juliaup update should do the job and update the installed Julia to the latest releas…

---

## [Noob needs help debugging and UNDERSTANDING reactive models](https://discourse.julialang.org/t/noob-needs-help-debugging-and-understanding-reactive-models/87038)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 11\
**Last updated:** [September 11, 2022, 2:21pm UTC](https://discourse.julialang.org/t/noob-needs-help-debugging-and-understanding-reactive-models/87038 "2022-09-11T14:21:49Z")

</div>

Hi there making “some” progress with julia but every now and again I hit something that I am misunderstanding. To fix this I use the REPL but right now I am having NO luck. To illustrate this I am trying to understand …

---

## [Inserting a NULL value into a SQLStrings query to replace nothing](https://discourse.julialang.org/t/inserting-a-null-value-into-a-sqlstrings-query-to-replace-nothing/87056)

<div class="topic-metadata">

**Author:** [@ivoytov](https://discourse.julialang.org/u/ivoytov)\
**Replies:** 5\
**Last updated:** [September 11, 2022, 1:07pm UTC](https://discourse.julialang.org/t/inserting-a-null-value-into-a-sqlstrings-query-to-replace-nothing/87056 "2022-09-11T13:07:01Z")

</div>

I’m using SQLStrings and some of the values I am inserting into the database might be NULL. However, when I insert a variable that is nothing, my SQL database actually sees the string value “nothing” and not NULL. I hack…

---

## [Is the manual register of new versions over?](https://discourse.julialang.org/t/is-the-manual-register-of-new-versions-over/87077)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 1\
**Last updated:** [September 11, 2022, 1:06pm UTC](https://discourse.julialang.org/t/is-the-manual-register-of-new-versions-over/87077 "2022-09-11T13:06:51Z")

</div>

Hi, I’ve, been trying to register a new version of GMT since 29 July. The automatic register fails due to the known libstdc++ issue ERROR: LoadError: could not load library "/tmp/jl\_C4sfbH/conda/3/lib/libgmt.so" /opt/h…

---

## [Unable to download Julia 1.8.1](https://discourse.julialang.org/t/unable-to-download-julia-1-8-1/87027)

<div class="topic-metadata">

**Author:** [@vector](https://discourse.julialang.org/u/vector)\
**Replies:** 21\
**Last updated:** [September 11, 2022, 11:26am UTC](https://discourse.julialang.org/t/unable-to-download-julia-1-8-1/87027 "2022-09-11T11:26:00Z")

</div>

I am unable to download Julia 1.8.1. Clicking on the link just keeps waiting. Julia documentation is also not available as a pdf download.

---

## [The deal with the light bulbs?](https://discourse.julialang.org/t/the-deal-with-the-light-bulbs/86839)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 3\
**Last updated:** [September 11, 2022, 11:14am UTC](https://discourse.julialang.org/t/the-deal-with-the-light-bulbs/86839 "2022-09-11T11:14:37Z")

</div>

This is my first time using (VS) Code. I opened a directory that contains a few Julia files, and while browsing a file I often notice a small yellow light bulb symbol to the left of some line of code. It displays the tex…

---

## [Efficiently creating a data frame that is made up of smaller data frames](https://discourse.julialang.org/t/efficiently-creating-a-data-frame-that-is-made-up-of-smaller-data-frames/87055)

<div class="topic-metadata">

**Author:** [@erickawaguchi](https://discourse.julialang.org/u/erickawaguchi)\
**Replies:** 5\
**Last updated:** [September 11, 2022, 10:25am UTC](https://discourse.julialang.org/t/efficiently-creating-a-data-frame-that-is-made-up-of-smaller-data-frames/87055 "2022-09-11T10:25:43Z")

</div>

Hi all, I’m trying to create a “long” version data frame (e.g. several observations per individual as in a longitudinal study). However, the data frame for each individual will depend on certain parameters - not the sam…

---

## [How does package sponsorship through NumFOCUS work?](https://discourse.julialang.org/t/how-does-package-sponsorship-through-numfocus-work/86440)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 10\
**Last updated:** [September 11, 2022, 10:25am UTC](https://discourse.julialang.org/t/how-does-package-sponsorship-through-numfocus-work/86440 "2022-09-11T10:25:31Z")

</div>

If I look at this package: GitHub - JuliaInterop/CxxWrap.jl: Package to make C++ libraries available in Julia I see there i a “Sponsor” button on the top. How can I add this kind of button to a package?

---

## [Compiling Julia to C/C++ or small executable file](https://discourse.julialang.org/t/compiling-julia-to-c-c-or-small-executable-file/86949)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 4\
**Last updated:** [September 11, 2022, 10:16am UTC](https://discourse.julialang.org/t/compiling-julia-to-c-c-or-small-executable-file/86949 "2022-09-11T10:16:41Z")

</div>

My programs often use complex intermediate data structures and algorithms (databases, rule-based transforms, symbolic math, simplifications, …). Their results are rather simple, to be included or embedded in other C/C++…

---

## [Displaying multiple plots at the same time](https://discourse.julialang.org/t/displaying-multiple-plots-at-the-same-time/87054)

<div class="topic-metadata">

**Author:** [@neuro\_enthusiast](https://discourse.julialang.org/u/neuro_enthusiast)\
**Replies:** 4\
**Last updated:** [September 11, 2022, 9:38am UTC](https://discourse.julialang.org/t/displaying-multiple-plots-at-the-same-time/87054 "2022-09-11T09:38:24Z")

</div>

Hi all, I was trying to plot multiple Gadfly plots and display them in two separate figures. However, only the second plot was displayed. function draw\_stuff() Gadfly.plot(x=\[1,1,2,2\],\[3,4,5,6\],Geom.violin) Gadfly.p…

---

## [How to call a vector of functions?](https://discourse.julialang.org/t/how-to-call-a-vector-of-functions/87064)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 5\
**Last updated:** [September 11, 2022, 9:04am UTC](https://discourse.julialang.org/t/how-to-call-a-vector-of-functions/87064 "2022-09-11T09:04:17Z")

</div>

julia\> f(x)=x^2 f (generic function with 1 method) julia\> g(x)=x+1 g (generic function with 1 method) julia\> \[f,g\](3) ERROR: MethodError: objects of type Vector{Function} are not callable Use square brackets \[\] for ind…

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

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