Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question about Stata jupyter notebook?

    Dear all,

    I try to run Stata code in Jupyter notebook in Vscode. It can But it run successfully ,but always get the warnings or error information.Just like the picture below?
    How can I remove the warnings? Any help will be appreciated.

    Attached Files
    Best regards.

    Raymond Zhang
    Stata 17.0,MP

  • #2
    Here is the complete code.
    Attached Files
    Best regards.

    Raymond Zhang
    Stata 17.0,MP

    Comment


    • #3
      It seems that Vscode jupyter notebook can not recognize Stata codes.
      Attached Files
      Best regards.

      Raymond Zhang
      Stata 17.0,MP

      Comment


      • #4
        I haven't yet tested it for vscode notebook specifically, but this might help: https://hugetim.github.io/nbstata/

        It gives you a Stata kernel so that you can enter Stata code directly in a notebook, without need for the `%%stata` magic. (It also automates setup so you don't need that `stata_setup` cell.)

        Comment

        Working...
        X