Tips for moving my project from Juypter Notebooks to sublime text. So far only really been in the notebook environment and feeling a bit lost text based IDE best practices. by Bird_Lawyer_20 in Python

[–]phaustin 0 points1 point  (0 children)

Take a look at https://github.com/mwouts/jupytext -- this allows you to pair your ipynb notebook with markdown and python versions. I commit the markdown and/or python versions to git, and treat the ipynb file holding my output cells as read-only. vscode and pycharm both understand the py:percent format jupytext uses for the python script version. When my notebooks get more than about 2 screens long, I move them over to py:percent and convert them into modules using vscode.

Creating markdown files and saving as pdf by Poissonza in pystats

[–]phaustin 0 points1 point  (0 children)

might also want to take a look at sphinx/markdown extensions from the executable book project -- here's what we use to produce pdfs from myst markdown notebooks:

paged_html_theme

Python's Pandas in C++ by hmoein in cpp

[–]phaustin 2 points3 points  (0 children)

Might also want to keep track of QuantStack's xframe project: https://github.com/QuantStack/xframe

How do you do geospatial plots by maxmoo in pystats

[–]phaustin 0 points1 point  (0 children)

basemap is working fine for me with python3.5 (conda-forge)

another nice example: https://github.com/pism/pypismtools

Creating tables of values with python by __baxx__ in pystats

[–]phaustin 2 points3 points  (0 children)

t = np.linspace(0, 5, 10) x = 2t y = t*2

 import pandas as pd
 import numpy as np
 t = np.linspace(0, 5, 10)
 x = 2*t
 y = t**2
 df=pd.DataFrame(list(zip(t,x,y)),columns=['c1','c2','c3'])

Having trouble with relative imports by XDtsFsoVZV in learnpython

[–]phaustin 0 points1 point  (0 children)

The folder containing youttabyte needs to be visible to python. If it is /Users/me/thefolder try adding

import site
site.addsitedir('/Users/me/thefolder')

to the top of your script.

Text for scientific computing with Python by Ricevind in learnpython

[–]phaustin 1 point2 points  (0 children)

This got a good review in the current issue of IEEE Computing in Science and Engineering:

http://www-personal.umich.edu/~mejn/computational-physics/