暗能星系

    • 登录
    • 搜索

    jupyter sql

    前端
    1
    6
    13
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • A
      anneng 最后由 编辑

      https://www.datacamp.com/tutorial/sql-interface-within-jupyterlab
      !pip install ipython-sql
      %load_ext sql
      这种方式本质是从python执行sql

      jupyterlab-sql extension
      5df72e38-2623-4bcd-b48d-a17f44edd94a-image.png
      这个插件时间比较久了 而且功能相对比较单一

      1 条回复 最后回复 回复 引用 0
      • A
        anneng 最后由 编辑

        https://pypi.org/project/jupyterlab-sql-editor/
        A JupyterLab extension providing:

        SQL formatter
        Automatic extraction of database schemas
        Auto-completion triggered by tab or dot for:
        table names
        table aliases
        table joins
        nested column names
        functions
        Syntax highlighting for:
        line magic
        cell magic
        Python strings
        IPython magic for:

        Spark SQL
        Trino

        1 条回复 最后回复 回复 引用 0
        • A
          anneng 最后由 编辑

          https://github.com/jupyter-xeus/xeus-sql
          另外一个扩展 和%%sql相比优势不明显

          1 条回复 最后回复 回复 引用 0
          • A
            anneng 最后由 编辑

            https://blog.jetbrains.com/datalore/2022/02/14/how-to-run-sql-from-jupyter-notebook-two-easy-ways/

            1 条回复 最后回复 回复 引用 0
            • A
              anneng 最后由 编辑

              https://github.com/ploomber/jupysql
              About
              Better SQL in Jupyter
              Run SQL in Jupyter/IPython via a %sql and %%sql magics.

              IPython-SQL's functionality and maintenance have been eclipsed by JupySQL, a fork maintained and developed by the Ploomber team. Future work will be directed into JupySQL - please file issues there, as well!

              这个项目应该是最新的支持了

              1 条回复 最后回复 回复 引用 0
              • A
                anneng 最后由 编辑

                https://medium.com/analytics-vidhya/postgresql-integration-with-jupyter-notebook-deb97579a38d
                还有就是直接用python包调用sql

                1 条回复 最后回复 回复 引用 0
                • First post
                  Last post
                Powered by 暗能星系