hugetim / nbstata

A Jupyter kernel for Stata built on pystata
https://hugetim.github.io/nbstata/
GNU General Public License v3.0
26 stars 2 forks source link

Add a Stata Quarto tutorial #37

Open hugetim opened 1 year ago

hugetim commented 1 year ago

Quarto is blowing my mind. It seemed impenetrable as I browsed randomly through the reference docs to find answers to particular questions. But then I finally broke down and...worked through the tutorials. 🌩💡

Working through the tutorials will be a bigger challenge for Stata users without experience in any of the tutorial reference languages, so I'd like to add a Stata Quarto tutorial to the docs here soon.

Originally posted by @hugetim in https://github.com/hugetim/nbstata/discussions/11#discussioncomment-5273306

hugetim commented 1 year ago

Can just link to this from the docs: https://friosavila.github.io/playingwithstata/quarto/dynstat

edit: Nevermind, that's already indirectly linked to via a link in the docs to a Statalist discussion. The question here is whether to add a tutorial to the nbstata documentation more directly analogous to the Quarto tutorials: https://quarto.org/docs/get-started/hello/jupyter.html

friosavila commented 1 year ago

Actually not only that one. my whole side uses nbstata combined with Quarto https://friosavila.github.io/stataviz/stataviz5.html

On Mon, Sep 11, 2023 at 4:00 PM Tim Huegerich @.***> wrote:

Can just link to this from the docs: https://friosavila.github.io/playingwithstata/quarto/dynstat

— Reply to this email directly, view it on GitHub https://github.com/hugetim/nbstata/issues/37#issuecomment-1714497032, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASZKKFTZWFLSCWSJ2MPFQFLXZ5UVXANCNFSM6AAAAAA4T2S2QA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

friosavila commented 1 year ago

Although a proper example would be useful

On Mon, Sep 11, 2023 at 8:23 PM Fernando Rios-Avila @.***> wrote:

Actually not only that one. my whole side uses nbstata combined with Quarto https://friosavila.github.io/stataviz/stataviz5.html

On Mon, Sep 11, 2023 at 4:00 PM Tim Huegerich @.***> wrote:

Can just link to this from the docs: https://friosavila.github.io/playingwithstata/quarto/dynstat

— Reply to this email directly, view it on GitHub https://github.com/hugetim/nbstata/issues/37#issuecomment-1714497032, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASZKKFTZWFLSCWSJ2MPFQFLXZ5UVXANCNFSM6AAAAAA4T2S2QA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

gaksaray commented 10 months ago

Any ideas on how to run Stata Quarto, but in Visual Editor of RStudio? The goal is to be able to work in Visual Editor as usual:

rstudio-hello

but write in {stata} code chunks instead of {r} code chunks. Currently when I do that, I can render the document in Quarto successfully with Stata code and output. But, I cannot run individual code chunks written in Stata to show within the editor without rendering the whole document.

Is this possible?

friosavila commented 10 months ago

I do t think that is possible Your only alternative option I would say is to use jupyter notebooks that can later be transferred to quarto

On Tue, Nov 28, 2023 at 5:05 AM Gorkem Aksaray @.***> wrote:

Any ideas on how to run Stata Quarto, but in Visual Editor of RStudio? The goal is to be able to work in Visual Editor as usual:

rstudio-hello.png (view on web) https://github.com/hugetim/nbstata/assets/72267919/023984bf-e9bf-429f-ab74-c19effffec46

but write in {stata} code chunks instead of {r} code chunks. Currently when I do that, I can render the document in Quarto successfully with Stata code and output. But, I cannot run individual code chunks written in Stata to show within the editor without rendering the whole document.

Is this possible?

— Reply to this email directly, view it on GitHub https://github.com/hugetim/nbstata/issues/37#issuecomment-1829490661, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASZKKFVKGWWDEBIWTUHKE7LYGWZPFAVCNFSM6AAAAAA4T2S2QCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRZGQ4TANRWGE . You are receiving this because you commented.Message ID: @.***>

hugetim commented 2 days ago

Adding a note that working with Stata in VSCode is now supported: https://github.com/hugetim/nbstata/discussions/44#discussion-6499362

friosavila commented 2 days ago

you mean inline code? as far as i know we can currently run code and will come up on a jupyter page

On Fri, Oct 4, 2024 at 1:33 PM Tim Huegerich @.***> wrote:

Adding a note that working with Stata in VSCode is now supported: #44 (comment) https://github.com/hugetim/nbstata/discussions/44#discussion-6499362

— Reply to this email directly, view it on GitHub https://github.com/hugetim/nbstata/issues/37#issuecomment-2394211723, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASZKKFSHBSCPQD3MKRCDB4LZZ3GNBAVCNFSM6AAAAABPMJYQK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJUGIYTCNZSGM . You are receiving this because you commented.Message ID: @.***>

hugetim commented 2 days ago

Right, I think that is true as of Jan 1, 2024. https://github.com/quarto-dev/quarto/issues/336#issuecomment-1873437072

Here's how it works for me, just now: image

That is, I have to manually change the kernel to nbstata (by clicking the upper left text, under "Interactive-1").

friosavila commented 1 day ago

We are doing the same then Now if we could get the option of inline Stata…

On Fri, Oct 4, 2024 at 3:03 PM Tim Huegerich @.***> wrote:

Right, I think that is true as of Jan 1, 2024. quarto-dev/quarto#336 (comment) https://github.com/quarto-dev/quarto/issues/336#issuecomment-1873437072

Here's how it works for me, just now: image.png (view on web) https://github.com/user-attachments/assets/3a4cd4e7-2b4f-4eff-96f0-d41073f67634

That is, I have to manually change the kernel to nbstata (by clicking the upper left text, under "Interactive-1").

— Reply to this email directly, view it on GitHub https://github.com/hugetim/nbstata/issues/37#issuecomment-2394389827, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASZKKFXGNQJJKVZ4ON3MTWDZZ3RAHAVCNFSM6AAAAABPMJYQK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJUGM4DSOBSG4 . You are receiving this because you commented.Message ID: @.***>