If the ticks refer to the axis ticks, than this would probably do the job:
ax.tick_params(axis="y", which="both", direction="in")
Here "both" refers to "minor" and "major" ticks (in case of log scale).
If the ticks refer to the axis ticks, than this would probably do the job:
ax.tick_params(axis="y", which="both", direction="in")
Here "both" refers to "minor" and "major" ticks (in case of log scale).