Skip to content

Commit

Permalink
0.0.20 (#21)
Browse files Browse the repository at this point in the history
* 0.0.20

* notebook updates
  • Loading branch information
orellabac authored Jan 27, 2023
1 parent 46736c0 commit ad0f720
Show file tree
Hide file tree
Showing 7 changed files with 122 additions and 476 deletions.
6 changes: 5 additions & 1 deletion CHANGE_LOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,8 @@ Fixing issues when getting displayHTML on some environments
Version 0.0.19
--------------
Adding functions.daydiff as a direct replacement for datediff
Fixing some test_cases
Fixing some test_cases

Version 0.0.20
--------------
Changing the implementation for notebook integration for dataframe to a more standard approach
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,17 @@ if tables.count() > 5:
```
If you dont specify a name you can still access the last result using `__df`.

The standard IPython display does not render snowpark `dataframe`. You can use `df.show()` but by default something like: `display(df)` will just print: `<snowflake.snowpark.dataframe.DataFrame at 0x7fa67d099c40>`
> NOTE: By default only 50 rows are displays. You can customize this limit for example to 100 rows with:
```
import snowpark_extensions
snowpark_extensions.rows_limit = 100
```

You can configure Jupyter to run some imports and initialization code at the start of a notebook by creating a file called `startup.ipy` in the `~/.ipython/profile_default/startup` directory.

You can configure Jupyter to run some imports and initialization code at the start of a notebook by creating a file called `startup.ipy` in the `~/.ipython/profile_default/startup` directory. Any code written in this file will be executed when you start a new Jupyter notebook.
Any code written in this file will be executed when you start a new Jupyter notebook.

An [example startup.ipy](./startup.ipy) is provided
An [example startup.ipy](https://github.com/MobilizeNet/snowpark-extensions-py/blob/main/startup.ipy) is provided


## Running notebooks in Snowpark
Expand Down
Loading

0 comments on commit ad0f720

Please sign in to comment.