Skip to content

Commit 078ae41

Browse files
committed
update docs url
1 parent f8cc1e7 commit 078ae41

File tree

16 files changed

+52
-52
lines changed

16 files changed

+52
-52
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
For general information, see [Ploombers' contributing guidelines.](https://ploomber-contributing.readthedocs.io)
44

55

6-
For specific JupySQL contributing guidelines, see the [Developer guide](https://jupysql.ploomber.io/en/latest/community/developer-guide.html).
6+
For specific JupySQL contributing guidelines, see the [Developer guide](https://jupysql.readthedocs.io/en/latest/community/developer-guide.html).
77

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
|
1515
<a href="mailto:contact@ploomber.io">Contact us</a>
1616
|
17-
<a href="https://jupysql.ploomber.io/">Docs</a>
17+
<a href="https://jupysql.readthedocs.io/">Docs</a>
1818
|
1919
<a href="https://ploomber.io/blog">Blog</a>
2020
|
@@ -30,10 +30,10 @@ Run SQL in Jupyter/IPython via a `%sql` and `%%sql` magics.
3030

3131
## Features
3232

33-
- [Pandas integration](https://jupysql.ploomber.io/en/latest/integrations/pandas.html)
34-
- [SQL composition (no more hard-to-debug CTEs!)](https://jupysql.ploomber.io/en/latest/compose.html)
35-
- [Plot massive datasets without blowing up memory](https://jupysql.ploomber.io/en/latest/plot.html)
36-
- [DuckDB integration](https://jupysql.ploomber.io/en/latest/integrations/duckdb.html)
33+
- [Pandas integration](https://jupysql.readthedocs.io/en/latest/integrations/pandas.html)
34+
- [SQL composition (no more hard-to-debug CTEs!)](https://jupysql.readthedocs.io/en/latest/compose.html)
35+
- [Plot massive datasets without blowing up memory](https://jupysql.readthedocs.io/en/latest/plot.html)
36+
- [DuckDB integration](https://jupysql.readthedocs.io/en/latest/integrations/duckdb.html)
3737

3838
## Installation
3939

@@ -49,7 +49,7 @@ conda install jupysql -c conda-forge
4949

5050
## Documentation
5151

52-
[Click here to see the documentation.](https://jupysql.ploomber.io)
52+
[Click here to see the documentation.](https://jupysql.readthedocs.io)
5353

5454
## Security
5555

doc/integrations/mssql.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@
493493
" </tr>\n",
494494
" </tbody>\n",
495495
"</table>\n",
496-
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.ploomber.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.ploomber.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
496+
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
497497
],
498498
"text/plain": [
499499
"+--------+\n",
@@ -867,7 +867,7 @@
867867
" </tr>\n",
868868
" </tbody>\n",
869869
"</table>\n",
870-
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.ploomber.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.ploomber.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
870+
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
871871
],
872872
"text/plain": [
873873
"+-------+\n",
@@ -935,7 +935,7 @@
935935
" </tr>\n",
936936
" </tbody>\n",
937937
"</table>\n",
938-
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.ploomber.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.ploomber.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
938+
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
939939
],
940940
"text/plain": [
941941
"+------+\n",
@@ -1047,7 +1047,7 @@
10471047
" </tr>\n",
10481048
" </tbody>\n",
10491049
"</table>\n",
1050-
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.ploomber.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.ploomber.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
1050+
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
10511051
],
10521052
"text/plain": [
10531053
"+-----+--------------------+-------+\n",

doc/integrations/redshift.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
" <tbody>\n",
164164
" </tbody>\n",
165165
"</table>\n",
166-
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.ploomber.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.ploomber.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
166+
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
167167
],
168168
"text/plain": [
169169
"++\n",
@@ -386,7 +386,7 @@
386386
" </tr>\n",
387387
" </tbody>\n",
388388
"</table>\n",
389-
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.ploomber.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.ploomber.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
389+
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
390390
],
391391
"text/plain": [
392392
"+----------+----------------------+-----------------------+-----------------+---------------+------------+--------------------+--------------+--------------+--------------+-------------+-------+---------+------------+--------------+-----------------------+--------------+----------------------+-------------+\n",
@@ -1100,7 +1100,7 @@
11001100
" </tr>\n",
11011101
" </tbody>\n",
11021102
"</table>\n",
1103-
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.ploomber.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.ploomber.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
1103+
"<span style='font-style:italic;font-size:11px'><code>ResultSet</code> : to convert to pandas, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/pandas.html'><code>.DataFrame()</code></a> or to polars, call <a href='https://jupysql.readthedocs.io/en/latest/integrations/polars.html'><code>.PolarsDataFrame()</code></a></span><br>"
11041104
],
11051105
"text/plain": [
11061106
"+-----------------+\n",

doc/integrations/trinodb.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
{
212212
"data": {
213213
"text/html": [
214-
"Tip: You may define configurations in /Users/neelashasen/Dev/jupysql_master/jupysql/pyproject.toml. Please review our <a href='https://jupysql.ploomber.io/en/latest/api/configuration.html#loading-from-a-file'>configuration guideline</a>."
214+
"Tip: You may define configurations in /Users/neelashasen/Dev/jupysql_master/jupysql/pyproject.toml. Please review our <a href='https://jupysql.readthedocs.io/en/latest/api/configuration.html#loading-from-a-file'>configuration guideline</a>."
215215
],
216216
"text/plain": [
217217
"<IPython.core.display.HTML object>"

doc/jupyterlab/format-sql.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
{
7070
"data": {
7171
"text/html": [
72-
"Please review our <a href='https://jupysql.ploomber.io/en/latest/api/configuration.html#loading-from-a-file'>configuration guideline</a>."
72+
"Please review our <a href='https://jupysql.readthedocs.io/en/latest/api/configuration.html#loading-from-a-file'>configuration guideline</a>."
7373
],
7474
"text/plain": [
7575
"<IPython.core.display.HTML object>"

doc/tutorials/etl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ In JupySQL, you can use Pandas DataFrame methods to perform data transformations
193193
For example, you can use the rename method to rename columns, the dropna method to
194194
remove missing values, and the astype method to convert data types. I'll demonstrate how to do it either with pandas or SQL.
195195

196-
* Note: You can use either `%sql` or `%%sql`, check out the difference between the two [here](https://jupysql.ploomber.io/en/latest/community/developer-guide.html?highlight=%25sql%20vs%20%25%25sql#magics-e-g-sql-sql-etc)
196+
* Note: You can use either `%sql` or `%%sql`, check out the difference between the two [here](https://jupysql.readthedocs.io/en/latest/community/developer-guide.html?highlight=%25sql%20vs%20%25%25sql#magics-e-g-sql-sql-etc)
197197

198198
<!-- #region -->
199199
Here's an example of how to use Pandas and the JupySQL alternatives to transform data:

doc/user-guide/table_explorer.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
{
101101
"data": {
102102
"text/html": [
103-
"Please review our <a href='https://jupysql.ploomber.io/en/latest/api/configuration.html#loading-from-a-file'>configuration guideline</a>."
103+
"Please review our <a href='https://jupysql.readthedocs.io/en/latest/api/configuration.html#loading-from-a-file'>configuration guideline</a>."
104104
],
105105
"text/plain": [
106106
"<IPython.core.display.HTML object>"

src/sql/connection/connection.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from sql import _current
3737
from sql.connection import error_handling
3838

39-
BASE_DOC_URL = "https://jupysql.ploomber.io/en/latest"
39+
BASE_DOC_URL = "https://jupysql.readthedocs.io/en/latest"
4040

4141

4242
PLOOMBER_DOCS_LINK_STR = f"{BASE_DOC_URL}/connecting.html"
@@ -835,14 +835,14 @@ def raw_execute(self, query, parameters=None, with_=None):
835835
"disable it with: "
836836
'%config SqlMagic.named_parameters="disabled"\n'
837837
"For more info, see the docs: "
838-
"https://jupysql.ploomber.io/en/latest/api/configuration.html#named-parameters" # noqa
838+
"https://jupysql.readthedocs.io/en/latest/api/configuration.html#named-parameters" # noqa
839839
)
840840
elif parameters == {}:
841841
e.add_detail(
842842
'The named parameters feature is "disabled". '
843843
'Enable it with: %config SqlMagic.named_parameters="enabled".\n'
844844
"For more info, see the docs: "
845-
"https://jupysql.ploomber.io/en/latest/api/configuration.html#named-parameters" # noqa
845+
"https://jupysql.readthedocs.io/en/latest/api/configuration.html#named-parameters" # noqa
846846
)
847847
raise
848848

@@ -1138,7 +1138,9 @@ def to_table(self, table_name, data_frame, if_exists, index, schema=None):
11381138
mode = (
11391139
"overwrite"
11401140
if if_exists == "replace"
1141-
else "append" if if_exists == "append" else "error"
1141+
else "append"
1142+
if if_exists == "append"
1143+
else "error"
11421144
)
11431145
self._connection.createDataFrame(data_frame).write.mode(mode).saveAsTable(
11441146
f"{schema}.{table_name}" if schema else table_name
@@ -1206,8 +1208,7 @@ def _suggest_fix(env_var, connect_str=None):
12061208
if keys:
12071209
keys_ = ",".join(repr(k) for k in keys)
12081210
options.append(
1209-
f"Pass a connection key (one of: {keys_})"
1210-
f"\n Example: %sql {keys[0]!r}"
1211+
f"Pass a connection key (one of: {keys_})\n Example: %sql {keys[0]!r}"
12111212
)
12121213

12131214
if env_var:

src/sql/error_handler.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
CTE_MSG = (
99
"If using snippets, you may pass the --with argument explicitly.\n"
1010
"For more details please refer: "
11-
"https://jupysql.ploomber.io/en/latest/compose.html#with-argument"
11+
"https://jupysql.readthedocs.io/en/latest/compose.html#with-argument"
1212
)
1313
POSTGRES_MSG = """\nLooks like you have run into some issues.
1414
Review our DB connection via URL strings guide:
15-
https://jupysql.ploomber.io/en/latest/connecting.html .
15+
https://jupysql.readthedocs.io/en/latest/connecting.html .
1616
Using Ubuntu? Check out this guide: "
1717
https://help.ubuntu.com/community/PostgreSQL#fe_sendauth:_
1818
no_password_supplied\n"""
@@ -68,8 +68,7 @@ def _detailed_message_with_error_type(error, query):
6868
typo_err_msg = _snippet_typo_error_message(query)
6969
if typo_err_msg:
7070
return (
71-
f"{CTE_MSG}\n\n{typo_err_msg}\n\n"
72-
f"{ORIGINAL_ERROR}{original_error}\n",
71+
f"{CTE_MSG}\n\n{typo_err_msg}\n\n{ORIGINAL_ERROR}{original_error}\n",
7372
TableNotFoundError,
7473
)
7574
else:

0 commit comments

Comments
 (0)